diff options
author | Steve Coffman <gears@apache.org> | 2000-12-01 20:04:15 +0000 |
---|---|---|
committer | Steve Coffman <gears@apache.org> | 2000-12-01 20:04:15 +0000 |
commit | e812b8d97e7318b130a92980ed32cfd25ba21479 (patch) | |
tree | 02e40e5e76cdfa409cb3fe9684fc800810068377 /src | |
parent | 8be61b85a08e5330cbac76390e5061089a58cbfa (diff) | |
download | xmlgraphics-fop-e812b8d97e7318b130a92980ed32cfd25ba21479.tar.gz xmlgraphics-fop-e812b8d97e7318b130a92980ed32cfd25ba21479.zip |
Peter Housel's fix to allow JDK 1.1.x users to use FOP. Sorry for the
delay.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/fonts/apps/PFMReader.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/apache/fop/fonts/apps/PFMReader.java b/src/org/apache/fop/fonts/apps/PFMReader.java index 3a9eaddb5..fc563d4d4 100644 --- a/src/org/apache/fop/fonts/apps/PFMReader.java +++ b/src/org/apache/fop/fonts/apps/PFMReader.java @@ -206,9 +206,10 @@ public class PFMReader { String s = pfm.getPostscriptName(); int pos = s.indexOf("-"); if (pos >= 0) { - StringBuffer sb = new StringBuffer(s); - sb.deleteCharAt(pos); - s = sb.toString(); + char sb[] = new char[s.length() - 1]; + s.getChars(0, pos, sb, 0); + s.getChars(pos + 1, s.length(), sb, pos); + s = new String(sb); } el = doc.createElement("class-name"); |