aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-04-18 14:40:56 +0000
committerJeremias Maerki <jeremias@apache.org>2008-04-18 14:40:56 +0000
commitfa13f5c3f1434e4d0413ed418236b355018679ed (patch)
tree97c5659e0bdd7ff6562de65c98a216f6a58b1a80 /src/java/org
parent070382fa9bc83afed2acabb5fc1f37e5762ed9f9 (diff)
downloadxmlgraphics-fop-fa13f5c3f1434e4d0413ed418236b355018679ed.tar.gz
xmlgraphics-fop-fa13f5c3f1434e4d0413ed418236b355018679ed.zip
Remember the missing glyphs also if an event listener is registered so they don't get warned about twice.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@649552 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/fonts/SingleByteFont.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/fonts/SingleByteFont.java b/src/java/org/apache/fop/fonts/SingleByteFont.java
index 0a47d52ab..feb1b440c 100644
--- a/src/java/org/apache/fop/fonts/SingleByteFont.java
+++ b/src/java/org/apache/fop/fonts/SingleByteFont.java
@@ -117,15 +117,15 @@ public class SingleByteFont extends CustomFont {
}
//Give up, character is not available
- if (this.eventListener != null) {
- this.eventListener.glyphNotAvailable(this, c, getFontName());
- } else {
- Character ch = new Character(c);
- if (warnedChars == null) {
- warnedChars = new java.util.HashSet();
- }
- if (warnedChars.size() < 8 && !warnedChars.contains(ch)) {
- warnedChars.add(ch);
+ Character ch = new Character(c);
+ if (warnedChars == null) {
+ warnedChars = new java.util.HashSet();
+ }
+ if (warnedChars.size() < 8 && !warnedChars.contains(ch)) {
+ warnedChars.add(ch);
+ if (this.eventListener != null) {
+ this.eventListener.glyphNotAvailable(this, c, getFontName());
+ } else {
if (warnedChars.size() == 8) {
log.warn("Many requested glyphs are not available in font " + getFontName());
} else {