summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-05-06 08:02:02 -0400
committerKurt <kurt.w.jung@gmail.com>2019-05-06 08:02:02 -0400
commit19544237e961fe8e9ee7ca55fdafe724de35f889 (patch)
treeb6132601ddebb7ed831745883b9f8aba21cb203f /doc.go
parentce58337af2deb2d3f26d0d2f9f1a18f4da64f638 (diff)
Reorganize documentation slightly. Place utf-8 feature more prominently.
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc.go b/doc.go
index 1042302..11c7ef3 100644
--- a/doc.go
+++ b/doc.go
@@ -6,6 +6,8 @@ support for text, drawing and images.
Features
+- UTF-8 support
+
- Choice of measurement unit, page format and margins
- Page header and footer management
@@ -40,8 +42,6 @@ Features
- Charting facility
-- UTF-8 support
-
gofpdf has no dependencies other than the Go standard library. All tests
pass on Linux, Mac and Windows platforms.
@@ -147,9 +147,9 @@ Nothing special is required to use the standard PDF fonts (courier,
helvetica, times, zapfdingbats) in your documents other than calling
SetFont().
-You should use AddUTF8Font or AddUTF8FontFromBytes to add UTF-8 TTF
-font. RTL() and LTR() methods switch between “right-to-left” and
-“left-to-right” mode.
+You should use AddUTF8Font() or AddUTF8FontFromBytes() to add a TrueType
+UTF-8 encoded font. Use RTL() and LTR() methods switch between
+“right-to-left” and “left-to-right” mode.
In order to use a different non-UTF-8 TrueType or Type1 font, you will
need to generate a font definition file and, if the font will be