From 62b516407e4988dc0535a4cf5e1be1bbd5886fc5 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 5 Aug 2008 07:57:36 +0000 Subject: [PATCH] Fixed small mistake with weight adjustment on font lookup. Weight 400 was slipping through the cracks. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@682618 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/FontInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fonts/FontInfo.java b/src/java/org/apache/fop/fonts/FontInfo.java index f576c8208..2bcc6d7e1 100644 --- a/src/java/org/apache/fop/fonts/FontInfo.java +++ b/src/java/org/apache/fop/fonts/FontInfo.java @@ -436,7 +436,7 @@ public class FontInfo { FontTriplet key = null; String f = null; int newWeight = weight; - if (newWeight < 400) { + if (newWeight <= 400) { while (f == null && newWeight > 100) { newWeight -= 100; key = createFontKey(family, style, newWeight); -- 2.39.5