Implement qfont_loader::available.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5394 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-10-14 14:49:00 +00:00
parent c7b1647c97
commit fcb830103b
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-10-12 Dekel Tsur <dekelts@tau.ac.il>
* qfont_loader.C (available): Implemented.
2002-10-09 Edwin Leuven <leuven@fee.uva.nl>
* QDocument.C: Brand new document dialog

View File

@ -144,8 +144,10 @@ qfont_loader::font_info const * qfont_loader::getfontinfo(LyXFont const & f)
}
bool qfont_loader::available(LyXFont const &)
bool qfont_loader::available(LyXFont const & f)
{
// FIXME (see getRawName docs)
return true;
if (!lyxrc.use_gui)
return false;
return getfontinfo(f)->font.exactMatch();
}