#include "MathStream.h"
#include "MathData.h"
+#include "MetricsInfo.h"
#include "LaTeXFeatures.h"
#include <ostream>
void InsetMathBoldSymbol::metrics(MetricsInfo & mi, Dimension & dim) const
{
- //FontSetChanger dummy(mi.base, "mathbf");
+ Changer dummy = mi.base.changeEnsureMath();
+ //Changer dummy = mi.base.changeFontSet("mathbf");
cell(0).metrics(mi, dim);
- metricsMarkers(dim);
++dim.wid; // for 'double stroke'
}
void InsetMathBoldSymbol::draw(PainterInfo & pi, int x, int y) const
{
- //FontSetChanger dummy(pi.base, "mathbf");
+ Changer dummy = pi.base.changeEnsureMath();
+ //Changer dummy = pi.base.changeFontSet("mathbf");
+ cell(0).draw(pi, x, y);
cell(0).draw(pi, x + 1, y);
- cell(0).draw(pi, x + 2, y);
- drawMarkers(pi, x, y);
}
}
+void InsetMathBoldSymbol::htmlize(HtmlStream & os) const
+{
+ os << MTag("b") << cell(0) << ETag("b");
+}
+
+
void InsetMathBoldSymbol::infoize(odocstream & os) const
{
switch (kind_) {