12 class MathMetricsInfo;
16 void mathed_char_dim(LyXFont const &, unsigned char c,
17 int & asc, int & des, int & wid);
18 int mathed_char_width(LyXFont const &, unsigned char c);
19 int mathed_char_ascent(LyXFont const &, unsigned char c);
20 int mathed_char_descent(LyXFont const &, unsigned char c);
22 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h,
25 void mathed_draw_framebox(Painter & pain, int x, int y, MathInset const *);
27 void mathed_string_dim(LyXFont const &,
28 string const & s, int & asc, int & des, int & wid);
30 int mathed_string_width(LyXFont const &, string const & s);
31 int mathed_string_ascent(LyXFont const &, string const & s);
32 int mathed_string_descent(LyXFont const &, string const & s);
34 void drawStr(Painter & pain, LyXFont const &, int x, int y, string const & s);
35 void drawChar(Painter & pain, LyXFont const & font, int x, int y, char c);
37 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
39 bool math_font_available(MathTextCodes code);
41 // decrease math size for super- and subscripts
42 void smallerStyleScript(MathMetricsInfo &);
44 // decrease math size for fractions
45 void smallerStyleFrac(MathMetricsInfo & st);
47 char const * math_font_name(MathTextCodes type);
49 string convertDelimToLatexName(string const & name);
51 void whichFont(LyXFont & f, MathTextCodes type, MathMetricsInfo const & size);