Ignore bogus matches of scalable fonts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5400 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-10-14 20:27:28 +00:00
parent 8c9ad457e9
commit 260f646231
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-10-14 Dekel Tsur <dekelts@tau.ac.il>
* FontInfo.C (query): Ignore bogus matches of scalable fonts.
2002-10-08 Angus Leeming <leeming@lyx.org>
* FeedbackController.C (PrehandlerCB):

View File

@ -143,6 +143,10 @@ void FontInfo::query()
}
scalable = true;
};
// Ignore bogus matches of scalable fonts.
if (sizes[i] > 0 &&
lyx::atoi(token(name, '-', 12)) == 0)
sizes[i] = 0;
};
XFreeFontNames(list);
}