summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2014-08-23 11:48:23 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2014-08-23 11:48:23 -0400
commitedb1e32a7b9a4547c3851294e58f76dc3188f6a1 (patch)
treecae687c8e23db19bf3a66bfa5aa4f7a3ac131e3f
parentef5dc50e1f5db2dec99b33f2699bfd90c061b146 (diff)
No need to specify font directory for example 23.
-rw-r--r--fpdf_test.go3
1 files changed, 1 insertions, 2 deletions
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
}