2 #ifndef MATH_FONTINSET_H
3 #define MATH_FONTINSET_H
5 #include "math_nestinset.h"
13 /** The base character inset.
17 class MathFontInset : public MathNestInset {
20 explicit MathFontInset(string const & name);
22 MathInset * clone() const;
24 void metrics(MathMetricsInfo & mi) const;
26 void draw(MathPainterInfo & pi, int x, int y) const;
28 void metricsT(TextMetricsInfo const & mi) const;
30 void drawT(TextPainter & pi, int x, int y) const;
32 void write(WriteStream & os) const;
34 void normalize(NormalStream &) const;
35 /// identifies Fontinsets
36 MathFontInset const * asFontInset() const { return this; }
38 void validate(LaTeXFeatures & features) const;
40 void infoize(std::ostream & os) const;
43 /// the font to be used on screen