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_height(LyXFont const &, unsigned char c, int & asc, int & des);
21 int mathed_char_width(LyXFont const &, unsigned char c);
22 int mathed_char_ascent(LyXFont const &, unsigned char c);
23 int mathed_char_descent(LyXFont const &, unsigned char c);
25 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h,
28 void mathed_draw_framebox(Painter & pain, int x, int y, MathInset const *);
30 void mathed_string_dim(LyXFont const &,
31 string const & s, int & asc, int & des, int & wid);
32 int mathed_string_height(LyXFont const &,
33 string const & s, int & asc, int & des);
35 int mathed_string_width(LyXFont const &, string const & s);
36 int mathed_string_ascent(LyXFont const &, string const & s);
37 int mathed_string_descent(LyXFont const &, string const & s);
39 void drawStr(Painter & pain, LyXFont const &, int x, int y, string const & s);
40 void drawChar(Painter & pain, LyXFont const & font, int x, int y, char c);
42 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
44 bool math_font_available(MathTextCodes code);
46 // decrease math size for super- and subscripts
47 void smallerStyleScript(MathMetricsInfo &);
49 // decrease math size for fractions
50 void smallerStyleFrac(MathMetricsInfo & st);
52 char const * math_font_name(MathTextCodes type);
54 string convertDelimToLatexName(string const & name);
56 void whichFont(LyXFont & f, MathTextCodes type, MathMetricsInfo const & size);