aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-03-27 08:49:41 +0000
committerJeremias Maerki <jeremias@apache.org>2008-03-27 08:49:41 +0000
commita32194e7187ef54492d5918e624114b18e35ac5b (patch)
treefa255eae053efae39cdac1a24a4e2df1ffa61c30 /src/codegen
parent40cdce2da150ea5b0061d0ed2250d30ce0e5584c (diff)
downloadxmlgraphics-fop-a32194e7187ef54492d5918e624114b18e35ac5b.tar.gz
xmlgraphics-fop-a32194e7187ef54492d5918e624114b18e35ac5b.zip
Added support for addressing all glyphs available in a Type 1 font, not just the ones in the font's primary encoding.
Typeface: getEncoding() changed to getEncodingName() to make clearer what is held here. Some cleanup in the font classes to put the various things in more appropriate places. Created a common base class for all Base 14 fonts (makes the hierarchy clearer). Made PDFTextUtil more universally useful and made use of it in PDFRenderer, too. Made PDFStream.add(String) more efficient. The encoding converter is not called for each invocation anymore as the whole thing get buffered by a BufferedWriter (as suggested by the javadoc of OutputStreamWriter). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@641742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/fonts/font-file.xsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/fonts/font-file.xsl b/src/codegen/fonts/font-file.xsl
index dbca3eba5..21a6507b8 100644
--- a/src/codegen/fonts/font-file.xsl
+++ b/src/codegen/fonts/font-file.xsl
@@ -40,10 +40,10 @@ import java.util.Map;
</xsl:if>
import java.util.Set;
import org.apache.fop.fonts.FontType;
-import org.apache.fop.fonts.Typeface;
+import org.apache.fop.fonts.Base14Font;
import org.apache.fop.fonts.CodePointMapping;
-public class <xsl:value-of select="class-name"/> extends Typeface {
+public class <xsl:value-of select="class-name"/> extends Base14Font {
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;
@@ -84,7 +84,7 @@ public class <xsl:value-of select="class-name"/> extends Typeface {
this.enableKerning = enableKerning;
}
- public String getEncoding() {
+ public String getEncodingName() {
return encoding;
}