aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-03-27 11:04:31 +0000
committerJeremias Maerki <jeremias@apache.org>2003-03-27 11:04:31 +0000
commit19967251e2e5ed4a760b3e56eae6a2b475acb54e (patch)
tree3d1d847e79a2ec586ace24769231b871e18fe524 /src
parent05d6a1943c642a95f1e852f2b66eab830024c5c1 (diff)
downloadxmlgraphics-fop-19967251e2e5ed4a760b3e56eae6a2b475acb54e.tar.gz
xmlgraphics-fop-19967251e2e5ed4a760b3e56eae6a2b475acb54e.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/pdf/PDFFactory.java6
-rw-r--r--src/java/org/apache/fop/pdf/PDFFontDescriptor.java4
2 files changed, 5 insertions, 5 deletions
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;
}