]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
PR:
authorTore Engvig <tore@apache.org>
Mon, 16 Apr 2001 16:51:41 +0000 (16:51 +0000)
committerTore Engvig <tore@apache.org>
Mon, 16 Apr 2001 16:51:41 +0000 (16:51 +0000)
Submitted by: Jeremias M�rki
Fixes NumberFormatExceptions when reading .pfm files with kerning values.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194213 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fonts/apps/PFMReader.java

index cf98ce434b01ca929d7b6e1785824892564ffcf1..634f03f3fe6f3c5eb87255e2465ffb87dcb82307 100644 (file)
@@ -324,9 +324,9 @@ public class PFMReader {
         // Get kerning
         for (Enumeration enum = pfm.getKerning().keys();
                 enum.hasMoreElements();) {
-            String kpx1 = (String) enum.nextElement();
+            Integer kpx1 = (Integer) enum.nextElement();
             el = doc.createElement("kerning");
-            el.setAttribute("kpx1", kpx1);
+            el.setAttribute("kpx1", kpx1.toString());
             root.appendChild(el);
             Element el2 = null;