2 #ifndef MATH_FONTOLDINSET_H
3 #define MATH_FONTOLDINSET_H
5 #include "math_nestinset.h"
11 /** Old-style font changes
17 class MathFontOldInset : public MathNestInset {
20 explicit MathFontOldInset(latexkeys const * key);
22 MathInset * clone() const;
23 /// we are in text mode.
24 mode_type currentMode() const { return TEXT_MODE; }
25 /// we write extra braces in any case...
26 bool extraBraces() const { return true; }
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 write(WriteStream & os) const;
38 void normalize(NormalStream &) const;
40 void infoize(std::ostream & os) const;
43 /// the font to be used on screen
44 latexkeys const * key_;