From: Jeremias Maerki Date: Thu, 27 Mar 2003 11:04:31 +0000 (+0000) Subject: Adjust to the PDFT1Stream being an AbstractPDFStream now. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1706 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19967251e2e5ed4a760b3e56eae6a2b475acb54e;p=xmlgraphics-fop.git Adjust to the PDFT1Stream being an AbstractPDFStream now. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196167 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/pdf/PDFFactory.java b/src/java/org/apache/fop/pdf/PDFFactory.java index cee35861b..ceeba8915 100644 --- a/src/java/org/apache/fop/pdf/PDFFactory.java +++ b/src/java/org/apache/fop/pdf/PDFFactory.java @@ -1078,7 +1078,7 @@ public class PDFFactory { // Check if the font is embeddable if (desc.isEmbeddable()) { - PDFStream stream = makeFontFile(desc); + AbstractPDFStream stream = makeFontFile(desc); if (stream != null) { descriptor.setFontFile(desc.getFontType(), stream); getDocument().registerObject(stream); @@ -1092,7 +1092,7 @@ public class PDFFactory { * @param desc FontDescriptor of the font. * @return PDFStream The embedded font file */ - public PDFStream makeFontFile(FontDescriptor desc) { + public AbstractPDFStream makeFontFile(FontDescriptor desc) { if (desc.getFontType() == FontType.OTHER) { throw new IllegalArgumentException("Trying to embed unsupported font type: " + desc.getFontType()); @@ -1142,7 +1142,7 @@ public class PDFFactory { return null; } else { try { - PDFStream embeddedFont; + AbstractPDFStream embeddedFont; if (desc.getFontType() == FontType.TYPE0) { MultiByteFont mbfont = (MultiByteFont)font; FontFileReader reader = new FontFileReader(in); diff --git a/src/java/org/apache/fop/pdf/PDFFontDescriptor.java b/src/java/org/apache/fop/pdf/PDFFontDescriptor.java index a91d509c2..804d70039 100644 --- a/src/java/org/apache/fop/pdf/PDFFontDescriptor.java +++ b/src/java/org/apache/fop/pdf/PDFFontDescriptor.java @@ -75,7 +75,7 @@ public class PDFFontDescriptor extends PDFObject { private int avgWidth = 0; private int maxWidth = 0; private int missingWidth = 0; - private PDFStream fontfile; + private AbstractPDFStream fontfile; // private String charSet = null; private FontType subtype; @@ -141,7 +141,7 @@ public class PDFFontDescriptor extends PDFObject { * @param subtype the font type defined in the font stream * @param fontfile the stream containing an embedded font */ - public void setFontFile(FontType subtype, PDFStream fontfile) { + public void setFontFile(FontType subtype, AbstractPDFStream fontfile) { this.subtype = subtype; this.fontfile = fontfile; }