Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Sep 2022 03:16:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 266214] PDF version of FreeBSD handbook (in zh-cn) has missing characters
Message-ID:  <bug-266214-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266214

            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, "=E6=AC=A2" in the first sentence (=E6=AC=
=A2=E8=BF=8E=E4=BD=BF=E7=94=A8...) 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 poin=
t.
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266214-9>