]> git.lyx.org Git - lyx.git/blobdiff - src/font.h
small changes read changelog
[lyx.git] / src / font.h
index 98f0013f52498f0ae6822c0e69ef69e4f0aad2da..7e286e48f1502fc2756926a1e69cfe6850fdd507 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -51,30 +51,30 @@ struct lyxfont {
        }
        ///
        static
-       int width(char const * s, int n, LyXFont const & f);
+       int width(char const * s, size_t n, LyXFont const & f);
        ///
        static
        int width(string const & s, LyXFont const & f) {
                if (s.empty()) return 0;
-               return width(s.c_str(), s.length(), f);
+               return width(s.data(), s.length(), f);
        }
        ///
-       static
-       int width(char const * s, LyXFont const & f) {
-               return width(s, strlen(s), f);
-       }
+       //static
+       //int width(char const * s, LyXFont const & f) {
+       //      return width(s, strlen(s), f);
+       //}
        ///
        static
        int signedWidth(string const & s, LyXFont const & f);
        ///
        static
-       int XTextWidth(LyXFont const & f, char * str, int count);
+       int XTextWidth(LyXFont const & f, char const * str, int count);
        ///
        static
        int width(XChar2b const * s, int n, LyXFont const & f);
        ///
        static
-       int XTextWidth16(LyXFont const & f, XChar2b * str, int count);
+       int XTextWidth16(LyXFont const & f, XChar2b const * str, int count);
        ///
        static
        void XSetFont(Display * display, GC gc, LyXFont const & f);