diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2013-08-10 21:34:54 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2013-08-10 21:34:54 -0400 |
commit | 1e84d9be144408bfdbb95582191158acd1805c74 (patch) | |
tree | f3c39afe9b080972984eb1b065ac8b9adcbaf3d5 /ttfparser_test.go | |
parent | fc5c7916f175f0301b8e103a72825c7db1c79186 (diff) |
Added support for drawing curves and arcs with an example. This was adapted
from the geometric figures FPDF script by David Hernández Sanz, with a starter
function provided by Anthony Starks.
Anthony Starks also made a case for not closing the io.Writer after it is used
to produce a document. An additional method, OutputAndClose, was added so that
the library can close the writer if desired.
Diffstat (limited to 'ttfparser_test.go')
-rw-r--r-- | ttfparser_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ttfparser_test.go b/ttfparser_test.go index c856ec5..5e25eeb 100644 --- a/ttfparser_test.go +++ b/ttfparser_test.go @@ -51,7 +51,7 @@ func TestLoadMap(t *testing.T) { "168: 0x0E08 chochanthai", "169: 0x0E09 chochingthai", } - list, err := loadMap(GOFPDF_DIR + "/font/iso-8859-11.map") + list, err := loadMap(FONT_DIR + "/iso-8859-11.map") if err == nil { pos := 0 for j := 164; j < 170; j++ { |