summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2010-07-02 15:57:08 +0000
committerVincent Hennebert <vhennebert@apache.org>2010-07-02 15:57:08 +0000
commit28e4838961e59c4d016a27a6a6f1efa158fa6bf9 (patch)
treec3119937cfe3cb85a8b703749de191e55d3ec6b3
parentda43afb9f8478dc523c6bda34510022a3fd1cc19 (diff)
downloadxmlgraphics-fop-28e4838961e59c4d016a27a6a6f1efa158fa6bf9.tar.gz
xmlgraphics-fop-28e4838961e59c4d016a27a6a6f1efa158fa6bf9.zip
Create PSFontResource for non-embedded fonts and fonts with additional encodings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@960040 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/render/ps/PSFontUtils.java4
1 files changed, 3 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 7f0d40824..d27954c23 100644
--- a/src/java/org/apache/fop/render/ps/PSFontUtils.java
+++ b/src/java/org/apache/fop/render/ps/PSFontUtils.java
@@ -134,7 +134,8 @@ public class PSFontUtils extends org.apache.xmlgraphics.ps.PSFontUtils {
String postFix = "_" + (i + 1);
PSResource derivedFontRes = defineDerivedFont(gen, tf.getFontName(),
tf.getFontName() + postFix, encoding.getName());
- fontResources.put(key + postFix, derivedFontRes);
+ fontResources.put(key + postFix,
+ PSFontResource.createFontResource(derivedFontRes));
}
}
}
@@ -252,6 +253,7 @@ public class PSFontUtils extends org.apache.xmlgraphics.ps.PSFontUtils {
}
if (!embeddedFont) {
gen.writeDSCComment(DSCConstants.INCLUDE_RESOURCE, fontRes);
+ fontResource = PSFontResource.createFontResource(fontRes);
}
return fontResource;
}