From 1df224f1d58d731bd9027a5af26b4604a183c4c8 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Wed, 9 Oct 2013 13:04:44 -0400 Subject: Bruno Michel caught and corrected yet another defect, this one an error in determining the number of loaded fonts. --- fpdf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1-24-ge1ad