aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render/mif/FontSetup.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/render/mif/FontSetup.java')
-rw-r--r--src/org/apache/fop/render/mif/FontSetup.java12
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) {