]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.cpp
Introduce the notion of math class
[lyx.git] / src / MetricsInfo.cpp
index 9f2baa81aa992ec5157c091b15b4d715629f4762..ea3bf0247e4fcf5083d358e85abd190bc3be19ff 100644 (file)
@@ -45,7 +45,7 @@ MetricsBase::MetricsBase(BufferView * b, FontInfo f, int w)
                // derive the line thickness from zoom factor
                // the zoom is given in percent
                // (increase thickness at 250%, 450% etc.)
-               solid_line_thickness_ = (lyxrc.zoom + 50) / 200;
+               solid_line_thickness_ = (lyxrc.zoom + 150) / 200;
                // adjust line_offset_ too
                solid_line_offset_ = 1 + solid_line_thickness_ / 2;
        }
@@ -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"