From 807441a526f9094d3c099d422542252a4a0ec964 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Fri, 15 Nov 2013 08:04:58 -0500 Subject: Brush some lint off using github.com/golang/lint. This includes one breaking change: WriteLinkID instead of WriteLinkId. --- ttfparser_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ttfparser_test.go') diff --git a/ttfparser_test.go b/ttfparser_test.go index 77f2880..6b9b4c1 100644 --- a/ttfparser_test.go +++ b/ttfparser_test.go @@ -24,7 +24,7 @@ import ( ) func ExampleTtfParse() { - ttf, err := gofpdf.TtfParse(FONT_DIR + "/calligra.ttf") + ttf, err := gofpdf.TtfParse(cnFontDir + "/calligra.ttf") if err == nil { fmt.Printf("Postscript name: %s\n", ttf.PostScriptName) fmt.Printf("unitsPerEm: %8d\n", ttf.UnitsPerEm) @@ -55,7 +55,7 @@ func hexStr(s string) string { } func ExampleFpdf_GetStringWidth() { - pdf := gofpdf.New("", "", "", FONT_DIR) + pdf := gofpdf.New("", "", "", cnFontDir) pdf.SetFont("Helvetica", "", 12) pdf.AddPage() for _, s := range []string{"Hello", "世界", "\xe7a va?"} { -- cgit v1.2.1-24-ge1ad