Show on screen font changes for text-in-math

This commit is contained in:
Enrico Forestieri 2016-10-25 16:03:34 +02:00
parent 860accd01f
commit 3cf0cbb3c6

View File

@ -67,7 +67,8 @@ Changer MetricsBase::changeFontSet(string const & name, bool cond)
ColorCode oldcolor = font.color();
string const oldname = fontname;
fontname = name;
font = sane_font;
if (isMathFont(name) || isMathFont(oldname))
font = sane_font;
augmentFont(font, name);
font.setSize(rc->old.font.size());
if (name != "lyxtex"