From 71267fb332989953c8b27ec9a31832767886c926 Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 7 May 2019 10:06:44 -0400 Subject: Add note about CJK fonts --- README.md | 7 ++++++- doc.go | 5 ++++- doc/document.md | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84e7a1b..2d5d14e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,12 @@ support for 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 and “right-to-left” languages. +gofpdf supports UTF-8 TrueType fonts and “right-to-left” languages. Note +that Chinese, Japanese, and Korean characters may not be included in +many general purpose fonts. For these languages, a specialized font (for +example, +[NotoSansSC](https://github.com/jsntn/webfonts/blob/master/NotoSansSC-Regular.ttf) +for simplified Chinese) can be used. Also, support is provided to automatically translate UTF-8 runes to code page encodings for languages that have fewer than 256 glyphs. diff --git a/doc.go b/doc.go index 11c7ef3..2d6f49b 100644 --- a/doc.go +++ b/doc.go @@ -45,7 +45,10 @@ Features gofpdf has no dependencies other than the Go standard library. All tests pass on Linux, Mac and Windows platforms. -gofpdf supports UTF-8 fonts and “right-to-left” languages. +gofpdf supports UTF-8 TrueType fonts and “right-to-left” languages. Note +that Chinese, Japanese, and Korean characters may not be included in +many general purpose fonts. For these languages, a specialized font (for +example, NotoSansSC for simplified Chinese) can be used. Also, support is provided to automatically translate UTF-8 runes to code page encodings for languages that have fewer than 256 glyphs. diff --git a/doc/document.md b/doc/document.md index f650372..33f5dac 100644 --- a/doc/document.md +++ b/doc/document.md @@ -33,7 +33,10 @@ 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 and "right-to-left" languages. +gofpdf supports UTF-8 TrueType fonts and "right-to-left" languages. Note that +Chinese, Japanese, and Korean characters may not be included in many general +purpose fonts. For these languages, a specialized font (for example, +[NotoSansSC][noto] for simplified Chinese) can be used. Also, support is provided to automatically translate UTF-8 runes to code page encodings for languages that have fewer than 256 glyphs. @@ -250,6 +253,7 @@ UTF-8 fonts. [license]: https://raw.githubusercontent.com/jung-kurt/gofpdf/master/LICENSE [lint]: https://github.com/golang/lint [logo]: https://github.com/jung-kurt/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true +[noto]: https://github.com/jsntn/webfonts/blob/master/NotoSansSC-Regular.ttf [pr]: https://help.github.com/articles/using-pull-requests/ [report]: https://goreportcard.com/report/github.com/jung-kurt/gofpdf [status]: https://travis-ci.org/jung-kurt/gofpdf -- cgit v1.2.1-24-ge1ad