summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.hgignore1
-rw-r--r--fpdf.go2
2 files changed, 2 insertions, 1 deletions
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
}
}