diff options
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFResources.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFResources.java b/src/java/org/apache/fop/pdf/PDFResources.java index 4d31e2e6a..f351b23be 100644 --- a/src/java/org/apache/fop/pdf/PDFResources.java +++ b/src/java/org/apache/fop/pdf/PDFResources.java @@ -121,8 +121,9 @@ public class PDFResources extends PDFDictionary { */ public void addFonts(PDFDocument doc, FontInfo fontInfo) { Map<String, Typeface> usedFonts = fontInfo.getUsedFonts(); - for (String f : usedFonts.keySet()) { - Typeface font = usedFonts.get(f); + for (Map.Entry<String, Typeface> e : usedFonts.entrySet()) { + String f = e.getKey(); + Typeface font = e.getValue(); //Check if the font actually had any mapping operations. If not, it is an indication //that it has never actually been used and therefore doesn't have to be embedded. |