#include "InsetMathEnsureMath.h"
-#include "LaTeXFeatures.h"
#include "MathData.h"
#include "MathStream.h"
#include "MathSupport.h"
+#include "LaTeXFeatures.h"
+#include "MetricsInfo.h"
+
#include <ostream>
void InsetMathEnsureMath::metrics(MetricsInfo & mi, Dimension & dim) const
{
- bool really_change_font = isTextFont(from_ascii(mi.base.fontname));
+ bool really_change_font = isTextFont(mi.base.fontname);
Changer dummy = mi.base.changeFontSet("mathnormal", really_change_font);
cell(0).metrics(mi, dim);
metricsMarkers(dim);
void InsetMathEnsureMath::draw(PainterInfo & pi, int x, int y) const
{
- bool really_change_font = isTextFont(from_ascii(pi.base.fontname));
+ bool really_change_font = isTextFont(pi.base.fontname);
Changer dummy = pi.base.changeFontSet("mathnormal", really_change_font);
cell(0).draw(pi, x, y);
drawMarkers(pi, x, y);