diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2007-07-14 08:16:17 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2007-07-14 08:16:17 +0000 |
commit | f8092efc4ab1aa4616e687f67234dcbaa0259bf3 (patch) | |
tree | 69058544e79788d223d4e3160080a4787fa4fc51 /src/java/org/apache/fop/fonts/SingleByteFont.java | |
parent | 4e53cd8c59b4cc07ea7df4c84c8c71b829f9eb3e (diff) | |
download | xmlgraphics-fop-f8092efc4ab1aa4616e687f67234dcbaa0259bf3.tar.gz xmlgraphics-fop-f8092efc4ab1aa4616e687f67234dcbaa0259bf3.zip |
Bugzilla 42843: Warn on glyph substitution (offered by Max Berger)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@556239 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fonts/SingleByteFont.java')
-rw-r--r-- | src/java/org/apache/fop/fonts/SingleByteFont.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/SingleByteFont.java b/src/java/org/apache/fop/fonts/SingleByteFont.java index 99245fe28..ac1efc2a9 100644 --- a/src/java/org/apache/fop/fonts/SingleByteFont.java +++ b/src/java/org/apache/fop/fonts/SingleByteFont.java @@ -19,11 +19,17 @@ package org.apache.fop.fonts; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + /** * Generic SingleByte font */ public class SingleByteFont extends CustomFont { + /** logger */ + private static Log log = LogFactory.getLog(SingleByteFont.class); + private CodePointMapping mapping; private String encoding = "WinAnsiEncoding"; @@ -92,6 +98,8 @@ public class SingleByteFont extends CustomFont { if (d != 0) { return d; } else { + log.warn("Glyph " + (int) c + " not available in font " + + getFontName()); return '#'; } } |