]> git.lyx.org Git - lyx.git/blobdiff - src/font.h
bug 183
[lyx.git] / src / font.h
index 7e286e48f1502fc2756926a1e69cfe6850fdd507..51d50e93d6d692c1a35701135ec8d0d95e8cdd04 100644 (file)
@@ -78,6 +78,15 @@ struct lyxfont {
        ///
        static
        void XSetFont(Display * display, GC gc, LyXFont const & f);
+       // A couple of more high-level metrics
+       ///
+       static
+       void rectText(string const & str, LyXFont const & font,
+                     int & width, int & ascent, int & descent);
+       ///
+       static
+       void buttonText(string const & str, LyXFont const & font,
+                       int & width, int & ascent, int & descent);
 };
 
 //} // end of namespace font