diff options
author | Keiron Liddle <keiron@apache.org> | 2001-11-02 11:06:09 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-11-02 11:06:09 +0000 |
commit | cfc0da75fcc187e6dd7596e7480c4941e278b9d5 (patch) | |
tree | 8dadcac1a3dc6bcda7017fe8a71736fd044fb575 /src/org/apache/fop/render/mif/FontSetup.java | |
parent | 4cf83fe1e5dab96e2e348877b0e43d8abdc6c0d9 (diff) | |
download | xmlgraphics-fop-cfc0da75fcc187e6dd7596e7480c4941e278b9d5.tar.gz xmlgraphics-fop-cfc0da75fcc187e6dd7596e7480c4941e278b9d5.zip |
updated a few hashtables and vectors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render/mif/FontSetup.java')
-rw-r--r-- | src/org/apache/fop/render/mif/FontSetup.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/apache/fop/render/mif/FontSetup.java b/src/org/apache/fop/render/mif/FontSetup.java index 4691751d9..39c9b32d1 100644 --- a/src/org/apache/fop/render/mif/FontSetup.java +++ b/src/org/apache/fop/render/mif/FontSetup.java @@ -16,8 +16,8 @@ import org.apache.fop.mif.MIFDocument; // import org.apache.fop.pdf.PDFResources; // Java -import java.util.Enumeration; -import java.util.Hashtable; +import java.util.Iterator; +import java.util.HashMap; /** * sets up the PDF fonts. @@ -137,10 +137,10 @@ public class FontSetup { public static void addToFontFormat(MIFDocument mifDoc, FontInfo fontInfo) { - Hashtable fonts = fontInfo.getFonts(); - Enumeration e = fonts.keys(); - while (e.hasMoreElements()) { - String f = (String)e.nextElement(); + HashMap fonts = fontInfo.getFonts(); + Iterator e = fonts.keySet().iterator(); + while (e.hasNext()) { + String f = (String)e.next(); Font font = (Font)fonts.get(f); FontDescriptor desc = null; if (font instanceof FontDescriptor) { |