From 2003dae2718761b53dd3bcd302b794649e23a37d Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Sun, 21 Sep 2014 15:58:32 -0400 Subject: Corrected an off-by-one indexing error in encoding list. Thanks jy.pelle! --- .hgignore | 1 + fpdf.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.hgignore b/.hgignore index afa3fa9..50deff5 100644 --- a/.hgignore +++ b/.hgignore @@ -5,3 +5,4 @@ look open pdf.txt *.sublime* +font/Ubuntu-* diff --git a/fpdf.go b/fpdf.go index 5fd3f63..5beb694 100644 --- a/fpdf.go +++ b/fpdf.go @@ -1302,7 +1302,7 @@ func (f *Fpdf) AddFontFromReader(familyStr, styleStr string, r io.Reader) { n := -1 for j, str := range f.diffs { if str == info.Diff { - n = j + n = j + 1 break } } -- cgit v1.2.1-24-ge1ad