7 #include "math_kerninset.h"
8 #include "math_extern.h"
9 #include "math_mathmlstream.h"
10 #include "math_streamstr.h"
11 #include "math_support.h"
15 MathKernInset::MathKernInset()
20 MathInset * MathKernInset::clone() const
22 return new MathKernInset(*this);
26 void MathKernInset::metrics(MathMetricsInfo const & mi) const
29 whichFont(font, LM_TC_TEXTRM, mi);
31 extractNumber(cell(0), t);
32 width_ = int(t * lyxfont::width('m', font));
38 void MathKernInset::draw(Painter &, int, int) const
42 void MathKernInset::write(WriteStream & os) const
44 os << "\\lyxkern" << cell(0) << "em ";
48 void MathKernInset::normalize(NormalStream & os) const
50 os << "[lyxkern " << cell(0) << "em]";