summaryrefslogtreecommitdiff
path: root/ttfparser_test.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-11-15 08:04:58 -0500
committerKurt Jung <kurt.w.jung@code.google.com>2013-11-15 08:04:58 -0500
commit807441a526f9094d3c099d422542252a4a0ec964 (patch)
treee052b014f848ea09953116449a1c6dfdeab07d44 /ttfparser_test.go
parent18a535033a6b0b584b7fb1bb6a21a7c980207aa4 (diff)
Brush some lint off using github.com/golang/lint. This includes one breaking change: WriteLinkID instead of WriteLinkId.
Diffstat (limited to 'ttfparser_test.go')
-rw-r--r--ttfparser_test.go4
1 files changed, 2 insertions, 2 deletions
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?"} {