11 class MathMetricsInfo;
14 extern char const * latex_mathspace[];
16 int mathed_char_height(MathTextCodes type, MathMetricsInfo const & size,
17 unsigned char c, int & asc, int & des);
18 void mathed_char_dim(MathTextCodes type, MathMetricsInfo const & size,
19 unsigned char c, int & asc, int & des, int & wid);
20 int mathed_char_width(MathTextCodes type, MathMetricsInfo const & size,
22 int mathed_char_ascent(MathTextCodes type, MathMetricsInfo const & size,
24 int mathed_char_descent(MathTextCodes type, MathMetricsInfo const & size,
27 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h,
30 void mathed_draw_framebox(Painter & pain, int x, int y, MathInset const *);
32 void mathed_string_dim(MathTextCodes type, MathMetricsInfo const & size,
33 string const & s, int & asc, int & des, int & wid);
34 int mathed_string_height(MathTextCodes type, MathMetricsInfo const & size,
35 string const & s, int & asc, int & des);
37 int mathed_string_width(MathTextCodes type, MathMetricsInfo const & size,
39 int mathed_string_ascent(MathTextCodes type, MathMetricsInfo const & size,
41 int mathed_string_descent(MathTextCodes type, MathMetricsInfo const & size,
44 void drawStr(Painter & pain, MathTextCodes type, MathMetricsInfo const & siz,
45 int x, int y, string const & s);
46 void drawChar(Painter & pain, MathTextCodes type, MathMetricsInfo const & siz,
47 int x, int y, char c);
49 void math_font_max_dim(MathTextCodes code, MathMetricsInfo const & siz,
50 int & asc, int & desc);
52 bool math_font_available(MathTextCodes code);
54 // decrease math size for super- and subscripts
55 void smallerStyleScript(MathMetricsInfo &);
57 // decrease math size for fractions
58 void smallerStyleFrac(MathMetricsInfo & st);
60 char const * math_font_name(MathTextCodes type);
62 string convertDelimToLatexName(string const & name);