2 #ifndef MATH_FONTOLDINSET_H
3 #define MATH_FONTOLDINSET_H
5 #include "math_nestinset.h"
11 /** Old-style font changes
12 * \author André Pönitz
14 * Full author contact details are available in file CREDITS
19 class MathFontOldInset : public MathNestInset {
22 explicit MathFontOldInset(latexkeys const * key);
24 MathInset * clone() const;
25 /// we are in text mode.
26 mode_type currentMode() const { return TEXT_MODE; }
27 /// we write extra braces in any case...
28 bool extraBraces() const { return true; }
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 write(WriteStream & os) const;
40 void normalize(NormalStream &) const;
42 void infoize(std::ostream & os) const;
45 /// the font to be used on screen
46 latexkeys const * key_;