commit 3cf0cbb3c69e73d72b6cee3723de7b67e69c4c0a
Author: Enrico Forestieri <[email protected]>
Date:   Tue Oct 25 16:03:34 2016 +0200

    Show on screen font changes for text-in-math
---
 src/MetricsInfo.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/MetricsInfo.cpp b/src/MetricsInfo.cpp
index 589e924..ea3bf02 100644
--- a/src/MetricsInfo.cpp
+++ b/src/MetricsInfo.cpp
@@ -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"

Reply via email to