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) {
36 return width(&c, 1, f);
40 int width(char const * s, int n, LyXFont const & f);
43 int width(string const & s, LyXFont const & f) {
44 if (s.empty()) return 0;
45 return width(s.c_str(), s.length(), f);
49 int width(char const * s, LyXFont const & f) {
50 return width(s, strlen(s), f);
54 int signedWidth(string const & s, LyXFont const & f);
57 int XTextWidth(LyXFont const & f, char * str, int count);
60 int width(XChar2b const * s, int n, LyXFont const & f);
63 int XTextWidth16(LyXFont const & f, XChar2b * str, int count);
66 void XSetFont(Display * display, GC gc, LyXFont const & f);
69 //} // end of namespace font
71 // import into namespace lyx
72 //using font::maxAscent;
73 //using font::maxDescent;
75 //using font::descent;
76 //using font::lbearing;
77 //using font::rbearing;
79 //using font::signedWidth;
80 //using font::XTextWidth;
81 //using font::XSetFont;
83 //} // end of namespace lyx