summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'fpdf.go')
-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