aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
diff options
context:
space:
mode:
authorLuis Bernardo <lbernardo@apache.org>2014-11-10 11:18:43 +0000
committerLuis Bernardo <lbernardo@apache.org>2014-11-10 11:18:43 +0000
commitc446a6368fa7f88ef4efcdc1f17b195ece9b3836 (patch)
treeaf19be6a195e03530fa88c59ce96d083ff592226 /src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
parentfd6d7a7aef4f4154c1b587e5b87158eafe1d3c0f (diff)
downloadxmlgraphics-fop-c446a6368fa7f88ef4efcdc1f17b195ece9b3836.tar.gz
xmlgraphics-fop-c446a6368fa7f88ef4efcdc1f17b195ece9b3836.zip
FOP-2424: Allow for type1 afm/pfm files to be in a different path than the pfb file
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1637817 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java')
-rw-r--r--src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java b/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
index 0b410873b..b9b7539fc 100644
--- a/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
+++ b/src/java/org/apache/fop/render/java2d/ConfiguredFontCollection.java
@@ -33,6 +33,7 @@ import org.apache.fop.fonts.FontCollection;
import org.apache.fop.fonts.FontInfo;
import org.apache.fop.fonts.FontLoader;
import org.apache.fop.fonts.FontTriplet;
+import org.apache.fop.fonts.FontUris;
import org.apache.fop.fonts.LazyFont;
/**
@@ -81,10 +82,10 @@ public class ConfiguredFontCollection implements FontCollection {
InputStream fontSource = resourceResolver.getResource(fontURI);
font = new CustomFontMetricsMapper(fontMetrics, fontSource);
} else {
- CustomFont fontMetrics = FontLoader.loadFont(fontURI, null, true,
+ FontUris fontUris = new FontUris(fontURI, null);
+ CustomFont fontMetrics = FontLoader.loadFont(fontUris, null, true,
configFontInfo.getEmbeddingMode(), configFontInfo.getEncodingMode(),
- configFontInfo.getKerning(), configFontInfo.getAdvanced(),
- resourceResolver);
+ configFontInfo.getKerning(), configFontInfo.getAdvanced(), resourceResolver);
font = new CustomFontMetricsMapper(fontMetrics);
}