]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathSupport.C
Support lgathered and rgathered math environments
[lyx.git] / src / mathed / MathSupport.C
index 99bb7e43c0aa76ec9a8a0ee90237d19f4dd22f2f..448b74055e41829d914ebeed767c0b41edc74ebd 100644 (file)
 #include "debug.h"
 #include "LColor.h"
 
+#include "frontends/Application.h"
 #include "frontends/Painter.h"
 #include "frontends/font_metrics.h"
-#include "frontends/lyx_gui.h"
+#include "frontends/FontLoader.h"
 
 #include <map>
 #include <sstream>
@@ -670,9 +671,9 @@ void augmentFont(LyXFont & font, string const & name)
        if (!initialized) {
                initialized = true;
                // fake fonts if necessary
-               if (!lyx_gui::font_available(getFont("mathfrak")))
+               if (!theApp->fontLoader().available(getFont("mathfrak")))
                        fakeFont("mathfrak", "lyxfakefrak");
-               if (!lyx_gui::font_available(getFont("mathcal")))
+               if (!theApp->fontLoader().available(getFont("mathcal")))
                        fakeFont("mathcal", "lyxfakecal");
        }
        fontinfo * info = searchFont(name);