summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-10-09 13:04:44 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-10-09 13:04:44 -0400
commit1df224f1d58d731bd9027a5af26b4604a183c4c8 (patch)
tree5d5bfca1b6e2fe3b927dc6de296e72f26461ff20
parent651c5328065c606291da69a14eb665ae6c036d75 (diff)
Bruno Michel caught and corrected yet another defect, this one an error in determining the number of loaded fonts.
-rw-r--r--fpdf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index 07194b0..da5ddec 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -1204,7 +1204,7 @@ func (f *Fpdf) AddFont(familyStr, styleStr, fileStr string) {
if f.err != nil {
return
}
- info.I = len(f.fonts) + 1
+ info.I = len(f.fonts)
// dbg("font [%s], I [%d]", fileStr, info.I)
if len(info.Diff) > 0 {
// Search existing encodings