aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layout
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-03-15 16:49:58 +0000
committerJeremias Maerki <jeremias@apache.org>2003-03-15 16:49:58 +0000
commit706b6f1d61ba035f05be3df46f54da2dd420f6c3 (patch)
tree1cad61d1c0822a20cb660d68cbe9c35f57e1fcba /src/java/org/apache/fop/layout
parent85e2963b2262cf194fc1557182734cb31a9a012c (diff)
downloadxmlgraphics-fop-706b6f1d61ba035f05be3df46f54da2dd420f6c3.tar.gz
xmlgraphics-fop-706b6f1d61ba035f05be3df46f54da2dd420f6c3.zip
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
Diffstat (limited to 'src/java/org/apache/fop/layout')
-rw-r--r--src/java/org/apache/fop/layout/FontInfo.java4
1 files changed, 3 insertions, 1 deletions
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);
+ }
}