From: Tore Engvig Date: Mon, 16 Apr 2001 16:51:41 +0000 (+0000) Subject: PR: X-Git-Tag: PRE_CODEFORMATTING~164 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71c312c66764772abfbf12363f94ca889eefeaa5;p=xmlgraphics-fop.git PR: 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 --- diff --git a/src/org/apache/fop/fonts/apps/PFMReader.java b/src/org/apache/fop/fonts/apps/PFMReader.java index cf98ce434..634f03f3f 100644 --- a/src/org/apache/fop/fonts/apps/PFMReader.java +++ b/src/org/apache/fop/fonts/apps/PFMReader.java @@ -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;