From 1af5a0c18cae5799fbfc73dc8440abb7d7622837 Mon Sep 17 00:00:00 2001 From: Antonio Bosak Date: Wed, 15 May 2019 17:27:33 +0200 Subject: fix for not concating already defined filepath --- fpdf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fpdf.go b/fpdf.go index d3366ce..e2ff7d7 100644 --- a/fpdf.go +++ b/fpdf.go @@ -1601,6 +1601,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) -- cgit v1.2.1-24-ge1ad