diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2010-08-27 18:27:03 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2010-08-27 18:27:03 +0000 |
commit | 001ddbb84ad0805b8112a861df08f9ca7d56fc3e (patch) | |
tree | 845465e6836542e05cf23c446161fe19d4da6c6d /src/java | |
parent | bb6dd55147567b97aac0061e713321825bc32ef9 (diff) | |
download | xmlgraphics-fop-001ddbb84ad0805b8112a861df08f9ca7d56fc3e.tar.gz xmlgraphics-fop-001ddbb84ad0805b8112a861df08f9ca7d56fc3e.zip |
Fixed list of supplied resources for DSC when <optimize-resources> option set to true
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@990220 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSFontUtils.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSFontUtils.java b/src/java/org/apache/fop/render/ps/PSFontUtils.java index 7adb9f756..e1a477b4e 100644 --- a/src/java/org/apache/fop/render/ps/PSFontUtils.java +++ b/src/java/org/apache/fop/render/ps/PSFontUtils.java @@ -492,10 +492,18 @@ public class PSFontUtils extends org.apache.xmlgraphics.ps.PSFontUtils { Typeface tf = getTypeFace(fontInfo, fonts, key); PSResource fontRes = new PSResource("font", tf.getFontName()); fontResources.put(key, fontRes); - if (FontType.TYPE1 == tf.getFontType()) { + FontType fontType = tf.getFontType(); + if (fontType == FontType.TYPE1 || fontType == FontType.TRUETYPE + || fontType == FontType.TYPE0) { if (tf instanceof CustomFont) { CustomFont cf = (CustomFont)tf; if (isEmbeddable(cf)) { + if (fontType == FontType.TYPE0) { + resTracker.registerSuppliedResource( + new PSResource(PSResource.TYPE_CIDFONT, tf.getFontName())); + resTracker.registerSuppliedResource( + new PSResource(PSResource.TYPE_CMAP, "Identity-H")); + } resTracker.registerSuppliedResource(fontRes); } if (tf instanceof SingleByteFont) { |