12 class MathMetricsInfo;
15 extern char const * latex_mathspace[];
17 int mathed_char_height(MathTextCodes type, MathMetricsInfo const & size,
18 unsigned char c, int & asc, int & des);
19 void mathed_char_dim(MathTextCodes type, MathMetricsInfo const & size,
20 unsigned char c, int & asc, int & des, int & wid);
21 int mathed_char_width(MathTextCodes type, MathMetricsInfo const & size,
23 int mathed_char_ascent(MathTextCodes type, MathMetricsInfo const & size,
25 int mathed_char_descent(MathTextCodes type, MathMetricsInfo const & size,
28 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h,
31 void mathed_draw_framebox(Painter & pain, int x, int y, MathInset const *);
33 void mathed_string_dim(MathTextCodes type, MathMetricsInfo const & size,
34 string const & s, int & asc, int & des, int & wid);
35 int mathed_string_height(MathTextCodes type, MathMetricsInfo const & size,
36 string const & s, int & asc, int & des);
38 int mathed_string_width(MathTextCodes type, MathMetricsInfo const & size,
40 int mathed_string_ascent(MathTextCodes type, MathMetricsInfo const & size,
42 int mathed_string_descent(MathTextCodes type, MathMetricsInfo const & size,
45 void drawStr(Painter & pain, MathTextCodes type, MathMetricsInfo const & siz,
46 int x, int y, string const & s);
47 void drawChar(Painter & pain, MathTextCodes type, MathMetricsInfo const & siz,
48 int x, int y, char c);
50 void drawStr(TextPainter & p, MathTextCodes type, MathMetricsInfo const & siz,
51 int x, int y, string const & s);
52 void drawChar(TextPainter & p, MathTextCodes type, MathMetricsInfo const & siz,
53 int x, int y, char c);
55 void math_font_max_dim(MathTextCodes code, MathMetricsInfo const & siz,
56 int & asc, int & desc);
58 bool math_font_available(MathTextCodes code);
60 // decrease math size for super- and subscripts
61 void smallerStyleScript(MathMetricsInfo &);
63 // decrease math size for fractions
64 void smallerStyleFrac(MathMetricsInfo & st);
66 char const * math_font_name(MathTextCodes type);
68 string convertDelimToLatexName(string const & name);