From d5fccc1900c0f0087bdf9bfbbcef4748fbf95b7f Mon Sep 17 00:00:00 2001 From: Evert Provoost Date: Mon, 18 Jun 2018 22:07:35 +0200 Subject: [PATCH] Fixes #22 --- pdf/fonts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf/fonts.go b/pdf/fonts.go index 1c399ec..60cc8ba 100644 --- a/pdf/fonts.go +++ b/pdf/fonts.go @@ -130,7 +130,7 @@ func loadCourierNew() error { // Italic pathToItalic, err := findFont("Courier New Italic.ttf") if err != nil { - pathToRegular, err = findFont("couri.ttf") + pathToItalic, err = findFont("couri.ttf") } if err != nil { @@ -140,7 +140,7 @@ func loadCourierNew() error { // Bold italic pathToBoldItalic, err := findFont("Courier New Bold Italic.ttf") if err != nil { - pathToRegular, err = findFont("courbi.ttf") + pathToBoldItalic, err = findFont("courbi.ttf") } if err != nil {