You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vm...@apache.org on 2003/08/15 20:08:23 UTC
cvs commit: xml-fop/src/codegen font-file.xsl
vmote 2003/08/15 11:08:23
Modified: src/codegen font-file.xsl
Log:
get generated font files to use new Typeface class name
Revision Changes Path
1.14 +9 -9 xml-fop/src/codegen/font-file.xsl
Index: font-file.xsl
===================================================================
RCS file: /home/cvs/xml-fop/src/codegen/font-file.xsl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- font-file.xsl 7 Mar 2003 10:54:17 -0000 1.13
+++ font-file.xsl 15 Aug 2003 18:08:23 -0000 1.14
@@ -47,7 +47,7 @@
on behalf of the Apache Software Foundation and was originally created by
James Tauber <jt...@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 @@
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 String getFontName() {
- return fontName;
+ return fontName;
}
-
+
public FontType getFontType() {
return FontType.TYPE1;
}
@@ -137,15 +137,15 @@
//for( int i = 0; i < 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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org