From 71c312c66764772abfbf12363f94ca889eefeaa5 Mon Sep 17 00:00:00 2001 From: Tore Engvig Date: Mon, 16 Apr 2001 16:51:41 +0000 Subject: [PATCH] =?utf8?q?PR:=20Submitted=20by:=09Jeremias=20M=EF=BF=BDrki?= =?utf8?q?=20Fixes=20NumberFormatExceptions=20when=20reading=20.pfm=20file?= =?utf8?q?s=20with=20kerning=20values.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5