diff options
Diffstat (limited to 'src/java/org/apache/fop/fonts/FontLoader.java')
-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); } /** |