diff options
Diffstat (limited to 'src/java/org/apache/fop/afp/AFPResourceManager.java')
-rw-r--r-- | src/java/org/apache/fop/afp/AFPResourceManager.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/afp/AFPResourceManager.java b/src/java/org/apache/fop/afp/AFPResourceManager.java index d4df8daab..f5910d7d9 100644 --- a/src/java/org/apache/fop/afp/AFPResourceManager.java +++ b/src/java/org/apache/fop/afp/AFPResourceManager.java @@ -338,7 +338,8 @@ public class AFPResourceManager { AFPResourceAccessor accessor = charSet.getResourceAccessor(); if (afpFont.getFontType() == FontType.TRUETYPE) { - createIncludedResource(afpFont.getFontName(), accessor.resolveURI("."), accessor, + createIncludedResource(afpFont.getFontName(), + ((AFPFontConfig.AFPTrueTypeFont) afpFont).getUri(), accessor, ResourceObject.TYPE_OBJECT_CONTAINER, true, ((AFPFontConfig.AFPTrueTypeFont) afpFont).getTTC()); } else { @@ -414,12 +415,7 @@ public class AFPResourceManager { ActiveEnvironmentGroup.setupTruetypeMDR(res, false); ObjectContainer oc = factory.createObjectContainer(); - InputStream is; - try { - is = accessor.createInputStream(new URI(".")); - } catch (URISyntaxException e) { - throw new IOException(e); - } + InputStream is = accessor.createInputStream(uri); if (ttc != null) { oc.setData(extractTTC(ttc, is)); |