]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed small mistake with weight adjustment on font lookup. Weight 400 was slipping...
authorJeremias Maerki <jeremias@apache.org>
Tue, 5 Aug 2008 07:57:36 +0000 (07:57 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 5 Aug 2008 07:57:36 +0000 (07:57 +0000)
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

index f576c8208ed93b0f251309a2fdc64ec6b7e3be68..2bcc6d7e136d3cdf773a609b68b7651789efa68c 100644 (file)
@@ -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);