diff options
author | Maximilian Berger <maxberger@apache.org> | 2009-09-24 10:09:55 +0000 |
---|---|---|
committer | Maximilian Berger <maxberger@apache.org> | 2009-09-24 10:09:55 +0000 |
commit | 4e970b8a7dda134f2594f9d7f258af4a90ff7a64 (patch) | |
tree | 578ce53ae4d3b8ba4ba0f6bf3c86b16d23ea1792 /src | |
parent | a30e3c29fd55d4d1b70f386180a8e7936a9dd799 (diff) | |
download | xmlgraphics-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.java | 4 |
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); } /** |