diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-12-05 09:33:18 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-12-05 09:33:18 +0000 |
commit | 8386a90fe3dadc07e6753bd2d8573425216fd142 (patch) | |
tree | e646fa9fb0ac76348d98042d88999c55a0523413 /src/java/org/apache/fop/afp | |
parent | 77c4994e9109551bb7fadc6d06cca501f51766c4 (diff) | |
download | xmlgraphics-fop-8386a90fe3dadc07e6753bd2d8573425216fd142.tar.gz xmlgraphics-fop-8386a90fe3dadc07e6753bd2d8573425216fd142.zip |
Avoid replacement notification if we're only checking the presence of a certain font.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@723689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/afp')
-rw-r--r-- | src/java/org/apache/fop/afp/fonts/AFPFontCollection.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/afp/fonts/AFPFontCollection.java b/src/java/org/apache/fop/afp/fonts/AFPFontCollection.java index bf136225b..670373fbf 100644 --- a/src/java/org/apache/fop/afp/fonts/AFPFontCollection.java +++ b/src/java/org/apache/fop/afp/fonts/AFPFontCollection.java @@ -67,16 +67,16 @@ public class AFPFontCollection implements FontCollection { num++; } } - if (fontInfo.fontLookup("any", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) { + if (!fontInfo.hasFont("any", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL)) { eventProducer.warnMissingDefaultFont(this, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL); } - if (fontInfo.fontLookup("any", Font.STYLE_ITALIC, Font.WEIGHT_NORMAL) == null) { + if (!fontInfo.hasFont("any", Font.STYLE_ITALIC, Font.WEIGHT_NORMAL)) { eventProducer.warnMissingDefaultFont(this, Font.STYLE_ITALIC, Font.WEIGHT_NORMAL); } - if (fontInfo.fontLookup("any", Font.STYLE_NORMAL, Font.WEIGHT_BOLD) == null) { + if (!fontInfo.hasFont("any", Font.STYLE_NORMAL, Font.WEIGHT_BOLD)) { eventProducer.warnMissingDefaultFont(this, Font.STYLE_ITALIC, Font.WEIGHT_BOLD); } - if (fontInfo.fontLookup("any", Font.STYLE_ITALIC, Font.WEIGHT_BOLD) == null) { + if (!fontInfo.hasFont("any", Font.STYLE_ITALIC, Font.WEIGHT_BOLD)) { eventProducer.warnMissingDefaultFont(this, Font.STYLE_ITALIC, Font.WEIGHT_BOLD); } } else { |