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;
25 /// are we in math mode, text mode, or unsure?
26 mode_type currentMode() const;
30 void metrics(MathMetricsInfo & mi) const;
32 void draw(MathPainterInfo & pi, int x, int y) const;
34 void metricsT(TextMetricsInfo const & mi) const;
36 void drawT(TextPainter & pi, int x, int y) const;
38 void validate(LaTeXFeatures & features) const;
40 void infoize(std::ostream & os) const;
43 /// the font to be used on screen
44 latexkeys const * key_;