[Bug 266214] PDF version of FreeBSD handbook (in zh-cn) has missing characters
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266214] PDF version of FreeBSD handbook (in zh-cn) has missing characters"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266214] PDF version of FreeBSD handbook (in zh-cn) has missing characters"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266214] PDF version of FreeBSD handbook (in zh-cn) has missing characters"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Sep 2022 03:16:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266214 Bug ID: 266214 Summary: PDF version of FreeBSD handbook (in zh-cn) has missing characters Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Books & Articles Assignee: doc@FreeBSD.org Reporter: henry.hu.sh@gmail.com PDF version of FreeBSD handbook (in zh-cn) downloaded from https://docs.freebsd.org/zh-cn/books/handbook/ has missing characters. For example, in the second page, "欢" in the first sentence (欢迎使用...) is not displayed correctly. A box or an empty space is displayed instead. It seems like that the file uses the font "M+ 1p" (https://fonts.adobe.com/fonts/m-plus-1p) by default. However, this is a Japanese font, and does not cover all Chinese characters. For the missing characters, the file seems to fallback to another font, Noto Serif. However, the font does not seem to be embedded correctly. As a result, characters missing from "M+ 1p" are not displayed correctly. If we open the file in PDFBox's PDF debugger, the errors are logged: WARNING: No glyph for 33 in font 0746d7+NotoSerif WARNING: No glyph for 33 in font bbf95d+NotoSerif-Italic .... There are other issues in using the wrong font: some characters are written differently in Japanese and Chinese, although they share the same code point. As a result, to properly produce a PDF in Chinese, a Chinese font should be used. Using a proper Chinese font when converting the handbook to PDF may resolve the issue. -- You are receiving this mail because: You are the assignee for the bug.