diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2014-09-21 15:58:32 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2014-09-21 15:58:32 -0400 |
commit | 2003dae2718761b53dd3bcd302b794649e23a37d (patch) | |
tree | b3aa59871b92bd5275f90a47a431badcd3e982b2 | |
parent | 6d620c17d2dc0d44e845a0a51608c7148a92c1ee (diff) |
Corrected an off-by-one indexing error in encoding list. Thanks jy.pelle!
-rw-r--r-- | .hgignore | 1 | ||||
-rw-r--r-- | fpdf.go | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -5,3 +5,4 @@ look open pdf.txt *.sublime* +font/Ubuntu-* @@ -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 } } |