#include "support/filetools.h" // LibFileSearch
#include "support/lstrings.h"
-#include "frontends/Application.h"
#include "frontends/FontLoader.h"
#include <fstream>
bool has_math_fonts;
+namespace lyx {
+extern bool use_gui;
+}
namespace {
bool math_font_available(string & name)
{
+ if (!lyx::use_gui)
+ return false;
+
LyXFont f;
augmentFont(f, name);
// Do we have the font proper?
- if (theApp->fontLoader().available(f))
+ if (theFontLoader().available(f))
return true;
// can we fake it?