17 int maxAscent(LyXFont const & f);
20 int maxDescent(LyXFont const & f);
23 int ascent(char c, LyXFont const & f);
26 int descent(char c, LyXFont const & f);
29 int lbearing(char c, LyXFont const & f);
32 int rbearing(char c, LyXFont const & f);
35 int width(char c, LyXFont const & f);
38 int width(char const * s, int n, LyXFont const & f);
41 int width(string const & s, LyXFont const & f) {
42 if (s.empty()) return 0;
43 return width(s.c_str(), s.length(), f);
47 int width(char const * s, LyXFont const & f) {
48 return width(s, strlen(s), f);
52 int signedWidth(string const & s, LyXFont const & f);
55 int XTextWidth(LyXFont const & f, char * str, int count);
58 void XSetFont(Display * display, GC gc, LyXFont const & f);
61 //} // end of namespace font
63 // import into namespace lyx
64 //using font::maxAscent;
65 //using font::maxDescent;
67 //using font::descent;
68 //using font::lbearing;
69 //using font::rbearing;
71 //using font::signedWidth;
72 //using font::XTextWidth;
73 //using font::XSetFont;
75 //} // end of namespace lyx