2 #ifndef MATH_FONTOLDINSET_H
3 #define MATH_FONTOLDINSET_H
5 #include "math_nestinset.h"
8 /** Old-style font changes
11 * Full author contact details are available in file CREDITS
16 class MathFontOldInset : public MathNestInset {
19 explicit MathFontOldInset(latexkeys const * key);
21 MathInset * clone() const;
22 /// we are in text mode.
23 mode_type currentMode() const { return TEXT_MODE; }
24 /// we write extra braces in any case...
25 bool extraBraces() const { return true; }
27 void metrics(MathMetricsInfo & mi) const;
29 void draw(MathPainterInfo & pi, int x, int y) const;
31 void metricsT(TextMetricsInfo const & mi) const;
33 void drawT(TextPainter & pi, int x, int y) const;
35 void write(WriteStream & os) const;
37 void normalize(NormalStream &) const;
39 void infoize(std::ostream & os) const;
42 /// the font to be used on screen
43 latexkeys const * key_;