2 #ifndef MATH_FONTINSET_H
3 #define MATH_FONTINSET_H
5 #include "math_nestinset.h"
8 /** Inset for font changes
11 * Full author contact details are available in file CREDITS
16 class MathFontInset : public MathNestInset {
19 explicit MathFontInset(latexkeys const * key);
21 MathInset * clone() const;
23 MathFontInset * asFontInset() { return this; }
25 MathFontInset const * asFontInset() const { return this; }
26 /// are we in math mode, text mode, or unsure?
27 mode_type currentMode() const;
31 void metrics(MathMetricsInfo & mi) const;
33 void draw(MathPainterInfo & pi, int x, int y) const;
35 void metricsT(TextMetricsInfo const & mi) const;
37 void drawT(TextPainter & pi, int x, int y) const;
39 void validate(LaTeXFeatures & features) const;
41 void infoize(std::ostream & os) const;
44 /// the font to be used on screen
45 latexkeys const * key_;