aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen/fonts
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-11-12 09:40:16 +0000
committerJeremias Maerki <jeremias@apache.org>2007-11-12 09:40:16 +0000
commitcad1cea3b08a4ffba6ae5242fe82ae3ff8fd0b53 (patch)
tree0029420be246668a36786f53b0f992cac409ac9f /src/codegen/fonts
parent44187d0d1e9916f2d872f4cb4e73d1209fc65191 (diff)
downloadxmlgraphics-fop-cad1cea3b08a4ffba6ae5242fe82ae3ff8fd0b53.tar.gz
xmlgraphics-fop-cad1cea3b08a4ffba6ae5242fe82ae3ff8fd0b53.zip
Avoid null values in generated Font classes so the encoding can be inspected.
Don't warn about missing hyphenation characters for fonts such as Symbol and ZapfDingbats which don't have the default hyphenation character. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/codegen/fonts')
-rw-r--r--src/codegen/fonts/font-file.xsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen/fonts/font-file.xsl b/src/codegen/fonts/font-file.xsl
index 17d6de2e3..dbca3eba5 100644
--- a/src/codegen/fonts/font-file.xsl
+++ b/src/codegen/fonts/font-file.xsl
@@ -30,7 +30,6 @@
<xsl:output method="text"/>
<xsl:param name="encoding" select="/font-metrics/encoding"/>
- <xsl:variable name="native-encoding" select="/font-metrics/encoding"/>
<xsl:variable name="glyphs" select="document('encodings.xml')/encoding-set/encoding[@id=$encoding]/glyph"/>
<xsl:template match="font-metrics">
@@ -48,7 +47,7 @@ public class <xsl:value-of select="class-name"/> extends Typeface {
private final static String fontName = "<xsl:value-of select="font-name"/>";
private final static String fullName = "<xsl:value-of select="full-name"/>";
private final static Set familyNames;
- private final static String encoding = <xsl:choose><xsl:when test="$encoding != $native-encoding">"<xsl:value-of select="$encoding"/>"</xsl:when><xsl:otherwise>null</xsl:otherwise></xsl:choose>;
+ private final static String encoding = "<xsl:value-of select="$encoding"/>";
private final static int capHeight = <xsl:value-of select="cap-height"/>;
private final static int xHeight = <xsl:value-of select="x-height"/>;
private final static int ascender = <xsl:value-of select="ascender"/>;