aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen
diff options
context:
space:
mode:
authorMaximilian Berger <maxberger@apache.org>2008-05-11 07:30:55 +0000
committerMaximilian Berger <maxberger@apache.org>2008-05-11 07:30:55 +0000
commit9526915ada1d579194a4b38a596d43f75921311c (patch)
tree7bbb67c894826b88ddf72c0f330de0e3f7b2298c /src/codegen
parentdbc0c79b06fc75164dde3bb4bb26991b82fb676e (diff)
downloadxmlgraphics-fop-9526915ada1d579194a4b38a596d43f75921311c.tar.gz
xmlgraphics-fop-9526915ada1d579194a4b38a596d43f75921311c.zip
made sure warning for missing glyphs is emitted in all cases
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/fonts/font-file.xsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/codegen/fonts/font-file.xsl b/src/codegen/fonts/font-file.xsl
index 21a6507b8..85b968808 100644
--- a/src/codegen/fonts/font-file.xsl
+++ b/src/codegen/fonts/font-file.xsl
@@ -42,6 +42,7 @@ import java.util.Set;
import org.apache.fop.fonts.FontType;
import org.apache.fop.fonts.Base14Font;
import org.apache.fop.fonts.CodePointMapping;
+import org.apache.fop.fonts.Typeface;;
public class <xsl:value-of select="class-name"/> extends Base14Font {
private final static String fontName = "<xsl:value-of select="font-name"/>";
@@ -169,7 +170,8 @@ public class <xsl:value-of select="class-name"/> extends Base14Font {
if (d != 0) {
return d;
} else {
- return '#';
+ this.warnMissingGlyph(c);
+ return Typeface.NOT_FOUND;
}
}