From edb1e32a7b9a4547c3851294e58f76dc3188f6a1 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Sat, 23 Aug 2014 11:48:23 -0400 Subject: No need to specify font directory for example 23. --- fpdf_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fpdf_test.go') diff --git a/fpdf_test.go b/fpdf_test.go index 76a8c1b..0da5e73 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -1166,7 +1166,7 @@ func ExampleFpdf_tutorial22() { // This example demonstrates the conversion of UTF-8 strings to an 8-bit font // encoding. func ExampleFpdf_tutorial23() { - pdf := gofpdf.New("P", "mm", "A4", cnFontDir) // A4 210.0 x 297.0 + pdf := gofpdf.New("P", "mm", "A4", "") // A4 210.0 x 297.0 fontSize := 16.0 pdf.SetFont("Helvetica", "", fontSize) ht := pdf.PointConvert(fontSize) @@ -1237,7 +1237,6 @@ func ExampleFpdf_tutorial25() { x = gap + radius for col := 0; col < colCount; col++ { pts = vertices(row*colCount + col + 3) - // pdf.Circle(x, y, radius, "FD") pdf.Polygon(pts, "FD") x += advance } -- cgit v1.2.1-24-ge1ad