#include "InsetFormulaMacro.h"
#include "MathMacroTable.h"
-#include "MatheMacroTemplate.h"
+#include "MathMacroTemplate.h"
#include "MathMLStream.h"
#include "BufferView.h"
#include "lyxlex.h"
#include "outputparams.h"
+#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
#include "support/lstrings.h"
tmpl()->metrics(mi, dim);
dim.asc += 5;
dim.des += 5;
- dim.wid += 10 + font_metrics::width(prefix(), mi.base.font);
+ dim.wid += 10 + theFontMetrics(mi.base.font).width(prefix());
dim_ = dim;
}
pi.pain.text(x + 2, y, prefix(), font);
// body
- tmpl()->draw(pi, x + font_metrics::width(prefix(), p.base.font) + 5, y);
+ tmpl()->draw(pi,
+ x + theFontMetrics(p.base.font).width(prefix()) + 5,
+ y);
setPosCache(pi, x, y);
}