Return false in FontLoader::available if !lyxrc.use_gui

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2671 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-09-03 19:28:36 +00:00
parent bc88ac96d7
commit ecdfc90a7a
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-09-03 Dekel Tsur <dekelts@tau.ac.il>
* FontLoader.C (available): Return false if !lyxrc.use_gui
2001-09-03 Michael Schmitt <schmitt@itm.mu-luebeck.de> 2001-09-03 Michael Schmitt <schmitt@itm.mu-luebeck.de>
* FontInfo.C (query): * FontInfo.C (query):

View File

@ -323,6 +323,8 @@ XFontStruct * FontLoader::doLoad(LyXFont::FONT_FAMILY family,
bool FontLoader::available(LyXFont const & f) bool FontLoader::available(LyXFont const & f)
{ {
if (!lyxrc.use_gui)
return false;
load(f.family(), f.series(), f.realShape(), f.size()); load(f.family(), f.series(), f.realShape(), f.size());
return fontinfo[f.family()][f.series()][f.realShape()] return fontinfo[f.family()][f.series()][f.realShape()]
->getFontname(f.size()).size(); ->getFontname(f.size()).size();