void MathFrameboxInset::metrics(MathMetricsInfo & mi) const
{
+ MathFontSetChanger dummy(mi.base, "textnormal");
w_ = mathed_char_width(mi.base.font, '[');
MathNestInset::metrics(mi);
dim_ = cell(0).dim();
void MathFrameboxInset::draw(MathPainterInfo & pi, int x, int y) const
{
+ MathFontSetChanger dummy(pi.base, "textnormal");
pi.pain.rectangle(x + 1, y - ascent() + 1, width() - 2, height() - 2,
LColor::black);
x += 5;
void write(WriteStream & os) const;
/// write normalized content
void normalize(NormalStream & ns) const;
+ ///
+ mode_type currentMode() const { return TEXT_MODE; }
private:
/// width of '[' in current font
mutable int w_;
else if (t.cs() == "framebox") {
cell->push_back(createMathInset(t.cs()));
- parse(cell->back().nucleus()->cell(0), FLAG_OPTION, mode);
- parse(cell->back().nucleus()->cell(1), FLAG_ITEM, mode);
+ parse(cell->back().nucleus()->cell(0), FLAG_OPTION, MathInset::TEXT_MODE);
+ parse(cell->back().nucleus()->cell(1), FLAG_ITEM, MathInset::TEXT_MODE);
}
#if 0