-/* This file is part of
- * ======================================================
+/**
+ * \file xfont_loader.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
*
- * Copyright 1997 Asger Alstrup
- * and the LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
#include <config.h>
#include <cmath> // fabs()
using std::endl;
-extern BufferView * current_view;
-
-
// The global fontloader
xfont_loader fontloader;
new FontInfo("-*-eufm10-medium-*-*-*-*-*-*-*-*-*-*-*");
return;
+ case LyXFont::WASY_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-wasy10-medium-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
default:
break;
}
XFontStruct * fs = 0;
- current_view->owner()->messagePush(_("Loading font into X-Server..."));
-
fs = XLoadQueryFont(fl_get_display(), font.c_str());
if (fs == 0) {
if (font == "fixed") {
lyxerr << "We're doomed. Can't get 'fixed' font." << endl;
} else {
- lyxerr << "Could not get font. Using 'fixed'." << endl;
+ lyxerr << "Could not get font '" << font
+ << "'. Using 'fixed'." << endl;
fs = XLoadQueryFont(fl_get_display(), "fixed");
}
} else if (lyxerr.debugging(Debug::FONT)) {
<< "' matched by\n" << font << endl;
}
- current_view->owner()->messagePop();
-
fontstruct[family][series][shape][size] = fs;
return fs;
}