summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdf.go1
1 files changed, 1 insertions, 0 deletions
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)