mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
bc88ac96d7
commit
ecdfc90a7a
@ -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>
|
||||
|
||||
* FontInfo.C (query):
|
||||
|
@ -323,6 +323,8 @@ XFontStruct * FontLoader::doLoad(LyXFont::FONT_FAMILY family,
|
||||
|
||||
bool FontLoader::available(LyXFont const & f)
|
||||
{
|
||||
if (!lyxrc.use_gui)
|
||||
return false;
|
||||
load(f.family(), f.series(), f.realShape(), f.size());
|
||||
return fontinfo[f.family()][f.series()][f.realShape()]
|
||||
->getFontname(f.size()).size();
|
||||
|
Loading…
Reference in New Issue
Block a user