2 #ifndef MATH_FONTINSET_H
3 #define MATH_FONTINSET_H
5 #include "math_nestinset.h"
11 /** Inset for font changes
17 class MathFontInset : public MathNestInset {
20 explicit MathFontInset(latexkeys const * key);
22 MathInset * clone() const;
23 /// are we in math mode, text mode, or unsure?
24 mode_type currentMode() const;
28 void metrics(MathMetricsInfo & mi) const;
30 void draw(MathPainterInfo & pi, int x, int y) const;
32 void metricsT(TextMetricsInfo const & mi) const;
34 void drawT(TextPainter & pi, int x, int y) const;
36 void validate(LaTeXFeatures & features) const;
38 void infoize(std::ostream & os) const;
41 /// the font to be used on screen
42 latexkeys const * key_;