From 260f646231e945f253612d63227e8c12446a6972 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Mon, 14 Oct 2002 20:27:28 +0000 Subject: [PATCH] Ignore bogus matches of scalable fonts. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5400 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/FontInfo.C | 4 ++++ 2 files changed, 8 insertions(+) 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); }