-/* This file is part of
- * ======================================================
+/**
+ * \file FontInfo.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Asger Alstrup
+ * \author John Levon
*
- * Copyright 1997 Asger Alstrup
- * and the LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#include <config.h>
#include "support/lstrings.h"
#include "support/lyxlib.h"
-#include "frontends/GUIRunTime.h"
-
#include <cmath> // abs()
using std::endl;
using std::abs;
+#include FORMS_H_LOCATION
/// Load font close to this size
string const FontInfo::getFontname(int size)
char ** list = 0;
if (lyxrc.use_gui)
- list = XListFonts(GUIRunTime::x11Display(), pattern.c_str(),
+ list = XListFonts(fl_get_display(), pattern.c_str(),
100, &matches);
if (list == 0) {