11 class MathMetricsInfo;
13 extern char const * latex_mathspace[];
15 int mathed_char_height(MathTextCodes type, MathMetricsInfo const & size,
16 unsigned char c, int & asc, int & des);
17 void mathed_char_dim(MathTextCodes type, MathMetricsInfo const & size,
18 unsigned char c, int & asc, int & des, int & wid);
19 int mathed_char_width(MathTextCodes type, MathMetricsInfo const & size,
21 int mathed_char_ascent(MathTextCodes type, MathMetricsInfo const & size,
23 int mathed_char_descent(MathTextCodes type, MathMetricsInfo const & size,
26 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h,
29 void mathed_string_dim(MathTextCodes type, MathMetricsInfo const & size,
30 string const & s, int & asc, int & des, int & wid);
31 int mathed_string_height(MathTextCodes type, MathMetricsInfo const & size,
32 string const & s, int & asc, int & des);
34 int mathed_string_width(MathTextCodes type, MathMetricsInfo const & size,
36 int mathed_string_ascent(MathTextCodes type, MathMetricsInfo const & size,
38 int mathed_string_descent(MathTextCodes type, MathMetricsInfo const & size,
41 void drawStr(Painter & pain, MathTextCodes type, MathMetricsInfo const & siz,
42 int x, int y, string const & s);
43 void drawChar(Painter & pain, MathTextCodes type, MathMetricsInfo const & siz,
44 int x, int y, char c);
46 void math_font_max_dim(MathTextCodes code, MathMetricsInfo const & siz,
47 int & asc, int & desc);
49 bool math_font_available(MathTextCodes code);
51 // decrease math size for super- and subscripts
52 void smallerStyleScript(MathMetricsInfo &);
54 // decrease math size for fractions
55 void smallerStyleFrac(MathMetricsInfo & st);
57 char const * math_font_name(MathTextCodes type);