#include "qt_helpers.h"
#include "QLImage.h"
-#include "BufferView.h"
-
-// FIXME: this is needed for now because LyXFunc is still constructed
-// there.
-#include "frontends/Application_pimpl.h"
-
#include "graphics/LoaderQueue.h"
#include "support/lstrings.h"
#include "support/os.h"
#include "support/package.h"
+#include "BufferView.h"
#include "lyx_main.h"
#include "lyxrc.h"
#include "debug.h"
}
+string const GuiApplication::romanFontName()
+{
+ QFont font;
+ font.setStyleHint(QFont::Serif);
+ font.setFamily("serif");
+
+ return fromqstr(QFontInfo(font).family());
+}
+
+
+string const GuiApplication::sansFontName()
+{
+ QFont font;
+ font.setStyleHint(QFont::SansSerif);
+ font.setFamily("sans");
+
+ return fromqstr(QFontInfo(font).family());
+}
+
+
+string const GuiApplication::typewriterFontName()
+{
+ QFont font;
+ font.setStyleHint(QFont::TypeWriter);
+ font.setFamily("monospace");
+
+ return fromqstr(QFontInfo(font).family());
+}
////////////////////////////////////////////////////////////////////////