diff options
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFT1Stream.java | 10 | ||||
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFTTFStream.java | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFT1Stream.java b/src/java/org/apache/fop/pdf/PDFT1Stream.java index 8181287b5..f7ab0b65f 100644 --- a/src/java/org/apache/fop/pdf/PDFT1Stream.java +++ b/src/java/org/apache/fop/pdf/PDFT1Stream.java @@ -87,4 +87,14 @@ public class PDFT1Stream extends AbstractPDFStream { this.pfb = pfb; } + /** {@inheritDoc} */ + protected void setupFilterList() { + if (!getFilterList().isInitialized()) { + getFilterList().addDefaultFilters( + getDocumentSafely().getFilterMap(), + PDFFilterList.FONT_FILTER); + } + super.setupFilterList(); + } + } diff --git a/src/java/org/apache/fop/pdf/PDFTTFStream.java b/src/java/org/apache/fop/pdf/PDFTTFStream.java index 6c68ea8bf..42d00ca9e 100644 --- a/src/java/org/apache/fop/pdf/PDFTTFStream.java +++ b/src/java/org/apache/fop/pdf/PDFTTFStream.java @@ -70,4 +70,14 @@ public class PDFTTFStream extends PDFStream { getBufferOutputStream().write(data, 0, size); } + /** {@inheritDoc} */ + protected void setupFilterList() { + if (!getFilterList().isInitialized()) { + getFilterList().addDefaultFilters( + getDocumentSafely().getFilterMap(), + PDFFilterList.FONT_FILTER); + } + super.setupFilterList(); + } + } |