summaryrefslogtreecommitdiff
path: root/ttfparser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ttfparser_test.go')
-rw-r--r--ttfparser_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ttfparser_test.go b/ttfparser_test.go
index dcdab4e..c856ec5 100644
--- a/ttfparser_test.go
+++ b/ttfparser_test.go
@@ -22,7 +22,7 @@ import (
)
func ExampleTtfParse() {
- ttf, err := TtfParse(GOFPDF_DIR + "/font/calligra.ttf")
+ ttf, err := TtfParse(FONT_DIR + "/calligra.ttf")
if err == nil {
fmt.Printf("Postscript name: %s\n", ttf.PostScriptName)
fmt.Printf("unitsPerEm: %8d\n", ttf.UnitsPerEm)