]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix font lookup when font was found through weight-adjust.
authorJeremias Maerki <jeremias@apache.org>
Sat, 15 Mar 2003 16:49:58 +0000 (16:49 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sat, 15 Mar 2003 16:49:58 +0000 (16:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196099 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layout/FontInfo.java

index dcde21770d75e00a93281e7378a06ba4a73707a7..6560fab97467f084d3cad89503bff078e3007e41 100644 (file)
@@ -164,7 +164,9 @@ public class FontInfo {
             }
 
             // then use default
-            f = (String)triplets.get(DEFAULT_FONT);
+            if (f == null) {
+                f = (String)triplets.get(DEFAULT_FONT);
+            }
 
         }