diff options
author | Mehdi Houshmand <mehdi@apache.org> | 2012-06-22 08:27:42 +0000 |
---|---|---|
committer | Mehdi Houshmand <mehdi@apache.org> | 2012-06-22 08:27:42 +0000 |
commit | a97e0be88b38483a36aa5101df08f370a5f53433 (patch) | |
tree | fd6651f55d8a6243a62ddf155dcc5478066d8a51 /src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java | |
parent | c36ffee9dfbf111899bbca5f994e334ca6b95011 (diff) | |
download | xmlgraphics-fop-a97e0be88b38483a36aa5101df08f370a5f53433.tar.gz xmlgraphics-fop-a97e0be88b38483a36aa5101df08f370a5f53433.zip |
Predominantly clean up and javadocs, very little functional change here
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1352800 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java')
-rw-r--r-- | src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java b/src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java index 2199df4f9..e5eba3ea2 100644 --- a/src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java +++ b/src/java/org/apache/fop/svg/PDFDocumentGraphics2DConfigurator.java @@ -19,6 +19,8 @@ package org.apache.fop.svg; +import java.io.File; +import java.net.URI; import java.util.List; import org.apache.avalon.framework.configuration.Configuration; @@ -85,7 +87,8 @@ public class PDFDocumentGraphics2DConfigurator { FontInfo fontInfo = new FontInfo(); final boolean strict = false; if (cfg != null) { - InternalResourceResolver resourceResolver = ResourceResolverFactory.createDefaultWrapper(); + URI thisUri = new File(".").getAbsoluteFile().toURI(); + InternalResourceResolver resourceResolver = ResourceResolverFactory.createDefaultInternalResourceResolver(thisUri); //TODO The following could be optimized by retaining the FontManager somewhere FontManager fontManager = new FontManager(resourceResolver, FontDetectorFactory.createDefault(), FontCacheManagerFactory.createDefault()); |