#include "MathParser.h"
#include "MetricsInfo.h"
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
#include <ostream>
+using namespace lyx::support;
namespace lyx {
void InsetMathFont::draw(PainterInfo & pi, int x, int y) const
{
- FontSetChanger dummy(pi.base, key_->name.c_str());
+ FontSetChanger dummy(pi.base, key_->name);
cell(0).draw(pi, x + 1, y);
drawMarkers(pi, x, y);
setPosCache(pi, x, y);
// no support at present for textipa, textsc, noun
if (!variant.empty()) {
- os << MTag("mstyle", "mathvariant='" + variant + "'")
- << cell(0)
- << ETag("mstyle");
+ if (tag == "mathbb") {
+ os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'")
+ << cell(0)
+ << ETag("mstyle");
+ } else {
+ os << MTag("mstyle", "mathvariant='" + variant + "'")
+ << cell(0)
+ << ETag("mstyle");
+ }
} else
os << cell(0);
}
void InsetMathFont::infoize(odocstream & os) const
{
- os << "Font: " << key_->name;
+ os << bformat(_("Font: %1$s"), key_->name);
}