2 #ifndef MATH_FONTINSET_H
3 #define MATH_FONTINSET_H
5 #include "math_nestinset.h"
11 /** Inset for font changes
12 * \author André Pönitz
14 * Full author contact details are available in file CREDITS
19 class MathFontInset : public MathNestInset {
22 explicit MathFontInset(latexkeys const * key);
24 MathInset * clone() const;
26 MathFontInset * asFontInset() { return this; }
28 MathFontInset const * asFontInset() const { return this; }
29 /// are we in math mode, text mode, or unsure?
30 mode_type currentMode() const;
34 void metrics(MathMetricsInfo & mi) const;
36 void draw(MathPainterInfo & pi, int x, int y) const;
38 void metricsT(TextMetricsInfo const & mi) const;
40 void drawT(TextPainter & pi, int x, int y) const;
42 void validate(LaTeXFeatures & features) const;
44 void infoize(std::ostream & os) const;
47 /// the font to be used on screen
48 latexkeys const * key_;