]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Skip IO Exception when loading a PFM and an AFM could be loaded. The PFM is only...
authorJeremias Maerki <jeremias@apache.org>
Tue, 5 Aug 2008 07:46:14 +0000 (07:46 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 5 Aug 2008 07:46:14 +0000 (07:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@682616 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fonts/type1/Type1FontLoader.java

index 5438d3a42c54b7be751d71ad692103c2c6cbd3b1..981f3ad6941fbe5d97a6c28f1c803801ac282bf8 100644 (file)
@@ -100,6 +100,11 @@ public class Type1FontLoader extends FontLoader {
             try {
                 pfm = new PFMFile();
                 pfm.load(pfmIn);
+            } catch (IOException ioe) {
+                if (afm == null) {
+                    //Ignore the exception if we have a valid PFM. PFM is only the fallback.
+                    throw ioe;
+                }
             } finally {
                 IOUtils.closeQuietly(pfmIn);
             }