diff options
author | Keiron Liddle <keiron@apache.org> | 2002-07-01 10:39:29 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-07-01 10:39:29 +0000 |
commit | 7afbc7cb22f8a9922279ea5049685df4faac70eb (patch) | |
tree | 74eb0aacf3c9872391a25d48c8d91cc90e196411 /src/org/apache/fop/pdf/PDFDocument.java | |
parent | 256485c97c7117cf834050dfffaa06d15e27fb5a (diff) | |
download | xmlgraphics-fop-7afbc7cb22f8a9922279ea5049685df4faac70eb.tar.gz xmlgraphics-fop-7afbc7cb22f8a9922279ea5049685df4faac70eb.zip |
fixed some minor errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf/PDFDocument.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFDocument.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/apache/fop/pdf/PDFDocument.java b/src/org/apache/fop/pdf/PDFDocument.java index b1471a3b6..072411ecb 100644 --- a/src/org/apache/fop/pdf/PDFDocument.java +++ b/src/org/apache/fop/pdf/PDFDocument.java @@ -825,6 +825,7 @@ public class PDFDocument { PDFFont font = new PDFFont(++this.objectcount, fontname, PDFFont.TYPE1, basefont, encoding); this.objects.add(font); + fontMap.put(basefont, font); return font; } else { byte subtype = PDFFont.TYPE1; @@ -892,6 +893,8 @@ public class PDFDocument { makeArray(metrics.getWidths(1))); } + fontMap.put(basefont, font); + return font; } } @@ -1005,7 +1008,6 @@ public class PDFDocument { pagewidth, pageheight); /* add it to the list of objects */ - this.objects.add(page); pages.addPage(page); return page; } |