diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-02-09 22:09:40 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-02-09 22:09:40 +0000 |
commit | 8e5a75b2b9b24dcd6c52f5ec3d6081e2b782ac44 (patch) | |
tree | f10d895d15aa0fad7c74580dae518c415660294d /src/java/org/apache | |
parent | a6c057cf631e12eae34dc468af08fc5e3b37758f (diff) | |
download | xmlgraphics-fop-8e5a75b2b9b24dcd6c52f5ec3d6081e2b782ac44.tar.gz xmlgraphics-fop-8e5a75b2b9b24dcd6c52f5ec3d6081e2b782ac44.zip |
There was a filter list constant for fonts, but our font streams didn't use it.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@742766 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-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(); + } + } |