summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-05-15 12:47:40 -0400
committerKurt <kurt.w.jung@gmail.com>2019-05-15 12:47:40 -0400
commite3b0ba0963bd3f50dc72a30bfbefdfce59bc7886 (patch)
tree2d200b3557dbd798e13c73a0e80171e92489bc7e
parent5a54c683de36b69f4a8bc4575f15fe6c1ecdebd9 (diff)
parent1af5a0c18cae5799fbfc73dc8440abb7d7622837 (diff)
Merge branch 'master' of https://github.com/toncek345/gofpdf into toncek345-master
-rw-r--r--fpdf.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index 666f97f..3e4188c 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -1605,6 +1605,7 @@ func (f *Fpdf) addFont(familyStr, styleStr, fileStr string, isUTF8 bool) {
}
var ttfStat os.FileInfo
var err error
+ fileStr = path.Join(f.fontpath, fileStr)
ttfStat, err = os.Stat(fileStr)
if err != nil {
f.SetError(err)