diff options
author | DarkFreedman <misterdark@mail.ru> | 2019-05-06 13:30:19 +0300 |
---|---|---|
committer | DarkFreedman <misterdark@mail.ru> | 2019-05-06 13:30:19 +0300 |
commit | 4ca1a43173413971a6bb92c78be31a71b29b416b (patch) | |
tree | f2b4aeb3196124553e3dabe7139f00c86f8ea44e | |
parent | 8022e9b91aea9cdbf7f7c561fc59a6e291cbfa59 (diff) |
Added "right to left" languages support.
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,7 +33,7 @@ text, drawing and images. gofpdf has no dependencies other than the Go standard library. All tests pass on Linux, Mac and Windows platforms. -gofpdf supports UTF-8 fonts. +gofpdf supports UTF-8 fonts and "right to left" languages. Also, support is provided to automatically translate UTF-8 runes to code page encodings for languages that have fewer than 256 @@ -136,6 +136,7 @@ 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. 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 compressed |