- FontSetChanger dummy(pi.base, key_->name.c_str());
- cell(0).draw(pi, x + 1, y);
- drawMarkers(pi, x, y);
+ current_mode_ = isTextFont(pi.base.fontname)
+ ? TEXT_MODE : MATH_MODE;
+
+ std::string const fontname = current_mode_ == MATH_MODE
+ ? "math" + font() : "text" + font();// I doubt that this still works
+
+ // When \cal is used in text mode, the font is not changed
+ bool really_change_font = fontname != "textcal";
+
+ Changer dummy = really_change_font ? pi.base.changeFontSet(fontname)
+ : Changer();
+ cell(0).draw(pi, x, y);