mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
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:
parent
72867958de
commit
aa32bf2dcb
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user