aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-08-15 18:08:23 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-08-15 18:08:23 +0000
commit943250a3d12a8fc7d3950b46de4f7cf1e8bc2a7d (patch)
treea0b33fa315b693a85583ba95db9ec7915bc78976
parent8e0c356d566160b71adb8eb3e96e65600f89db2a (diff)
downloadxmlgraphics-fop-943250a3d12a8fc7d3950b46de4f7cf1e8bc2a7d.tar.gz
xmlgraphics-fop-943250a3d12a8fc7d3950b46de4f7cf1e8bc2a7d.zip
get generated font files to use new Typeface class name
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196804 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/codegen/font-file.xsl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/codegen/font-file.xsl b/src/codegen/font-file.xsl
index ebf43638a..2ff65be6f 100644
--- a/src/codegen/font-file.xsl
+++ b/src/codegen/font-file.xsl
@@ -47,7 +47,7 @@ This software consists of voluntary contributions made by many individuals
on behalf of the Apache Software Foundation and was originally created by
James Tauber <jtauber@jtauber.com>. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
--->
+-->
<!-- This file writes the class files for the fonts (Courier.java,
Helvetica.java etc.). It uses the information in the font
description files (Courier.xml, Helvetica.xml) to do this. In these
@@ -70,10 +70,10 @@ Software Foundation, please see <http://www.apache.org/>.
package org.apache.fop.fonts.base14;
import org.apache.fop.fonts.FontType;
-import org.apache.fop.fonts.Font;
+import org.apache.fop.fonts.Typeface;
import org.apache.fop.fonts.CodePointMapping;
-public class <xsl:value-of select="class-name"/> extends Font {
+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 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 int capHeight = <xsl:value-of select="cap-height"/>;
@@ -96,9 +96,9 @@ public class <xsl:value-of select="class-name"/> extends Font {
}
public String getFontName() {
- return fontName;
+ return fontName;
}
-
+
public FontType getFontType() {
return FontType.TYPE1;
}
@@ -137,15 +137,15 @@ public class <xsl:value-of select="class-name"/> extends Font {
//for( int i = 0; i &lt; arr.length; i++) arr[i] *= size;
return arr;
}
-
+
public boolean hasKerningInfo() {
return false;
}
-
+
public java.util.Map getKerningInfo() {
return java.util.Collections.EMPTY_MAP;
}
-
+
public char mapChar(char c) {
char d = mapping.mapChar(c);
if(d != 0) {