aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Berger <maxberger@apache.org>2009-09-24 10:09:55 +0000
committerMaximilian Berger <maxberger@apache.org>2009-09-24 10:09:55 +0000
commit4e970b8a7dda134f2594f9d7f258af4a90ff7a64 (patch)
tree578ce53ae4d3b8ba4ba0f6bf3c86b16d23ea1792 /src
parenta30e3c29fd55d4d1b70f386180a8e7936a9dd799 (diff)
downloadxmlgraphics-fop-4e970b8a7dda134f2594f9d7f258af4a90ff7a64.tar.gz
xmlgraphics-fop-4e970b8a7dda134f2594f9d7f258af4a90ff7a64.zip
Added Testcase from Bug #47872 (thanks to alex kiel) and fixed it in FontLoader
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@818424 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fonts/FontLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fonts/FontLoader.java b/src/java/org/apache/fop/fonts/FontLoader.java
index aaca5b3fd..93d4ae03f 100644
--- a/src/java/org/apache/fop/fonts/FontLoader.java
+++ b/src/java/org/apache/fop/fonts/FontLoader.java
@@ -87,8 +87,8 @@ public abstract class FontLoader {
*/
public static CustomFont loadFont(File fontFile, String subFontName,
boolean embedded, EncodingMode encodingMode, FontResolver resolver) throws IOException {
- return loadFont(fontFile.getAbsolutePath(), subFontName,
- embedded, encodingMode, true, resolver);
+ return loadFont(fontFile.toURI().toURL(), subFontName,
+ embedded, encodingMode, resolver);
}
/**