From 706b6f1d61ba035f05be3df46f54da2dd420f6c3 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sat, 15 Mar 2003 16:49:58 +0000 Subject: [PATCH] Fix font lookup when font was found through weight-adjust. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layout/FontInfo.java b/src/java/org/apache/fop/layout/FontInfo.java index dcde21770..6560fab97 100644 --- a/src/java/org/apache/fop/layout/FontInfo.java +++ b/src/java/org/apache/fop/layout/FontInfo.java @@ -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); + } } -- 2.39.5