diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 8212116dcf..1c12bebbd3 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2002-10-14 Dekel Tsur + + * FontInfo.C (query): Ignore bogus matches of scalable fonts. + 2002-10-08 Angus Leeming * FeedbackController.C (PrehandlerCB): diff --git a/src/frontends/xforms/FontInfo.C b/src/frontends/xforms/FontInfo.C index fb47dd6832..52788c7946 100644 --- a/src/frontends/xforms/FontInfo.C +++ b/src/frontends/xforms/FontInfo.C @@ -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); }