From 19544237e961fe8e9ee7ca55fdafe724de35f889 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 6 May 2019 08:02:02 -0400 Subject: Reorganize documentation slightly. Place utf-8 feature more prominently. --- README.md | 8 ++++---- doc.go | 10 +++++----- doc/document.md | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2e163b9..84e7a1b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ support for text, drawing and images. ## Features + - UTF-8 support - Choice of measurement unit, page format and margins - Page header and footer management - Automatic page breaks, line breaks, and text justification @@ -29,7 +30,6 @@ support for text, drawing and images. - Templates - Barcodes - Charting facility - - UTF-8 support gofpdf has no dependencies other than the Go standard library. All tests pass on Linux, Mac and Windows platforms. @@ -140,9 +140,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 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 diff --git a/doc/document.md b/doc/document.md index eafb015..f650372 100644 --- a/doc/document.md +++ b/doc/document.md @@ -11,6 +11,7 @@ text, drawing and images. ## Features +* UTF-8 support * Choice of measurement unit, page format and margins * Page header and footer management * Automatic page breaks, line breaks, and text justification @@ -28,7 +29,6 @@ text, drawing and images. * Templates * Barcodes * Charting facility -* UTF-8 support gofpdf has no dependencies other than the Go standard library. All tests pass on Linux, Mac and Windows platforms. @@ -131,9 +131,9 @@ for all examples. 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 embedded into PDFs, a -- cgit v1.2.1-24-ge1ad