summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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