*
* \author Asger Alstrup
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#include <cmath> // fabs()
-
#include "xfont_loader.h"
#include "FontInfo.h"
-#include "gettext.h"
+
#include "debug.h"
+#include "LColor.h"
#include "lyxrc.h" // lyxrc.font_*
-#include "BufferView.h"
-#include "frontends/LyXView.h"
-#include "support/systemcall.h"
+
+#include "frontends/lyx_gui.h"
+
#include "support/filetools.h"
+#include "support/systemcall.h"
+
+#include "lyx_forms.h"
-#include FORMS_H_LOCATION
+#include <algorithm>
+
+using lyx::support::LibFileSearch;
+using lyx::support::OnlyPath;
+using lyx::support::Systemcall;
using std::endl;
+using std::string;
+
// The global fontloader
xfont_loader fontloader;
LyXFont::FONT_SHAPE shape,
LyXFont::FONT_SIZE size)
{
- if (!lyxrc.use_gui) {
+ if (!lyx_gui::use_gui) {
if (!dummyXFontStructisGood) {
// no character specific info
dummyXFontStruct.per_char = 0;
bool xfont_loader::available(LyXFont const & f)
{
- if (!lyxrc.use_gui)
+ if (!lyx_gui::use_gui)
return false;
if (!fontinfo[f.family()][f.series()][f.realShape()])