Check if font is available without loading the font.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2771 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-09-19 16:36:39 +00:00
parent 72867958de
commit aa32bf2dcb
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-09-19 Dekel Tsur <dekelts@tau.ac.il>
* FontLoader.C (available): Check if font is available without
loading the font.
2001-09-13 Angus Leeming <a.leeming@ic.ac.uk>
* lyxrc.[Ch]: added display_graphics variable and associated code.

View File

@ -325,7 +325,9 @@ bool FontLoader::available(LyXFont const & f)
{
if (!lyxrc.use_gui)
return false;
load(f.family(), f.series(), f.realShape(), f.size());
if (!fontinfo[f.family()][f.series()][f.realShape()])
getFontinfo(f.family(), f.series(), f.realShape());
return fontinfo[f.family()][f.series()][f.realShape()]
->getFontname(f.size()).size();
}