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