From nobody Sun Sep 4 03:16:51 2022 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MKxdc2GSlz4b9LK for ; Sun, 4 Sep 2022 03:16:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MKxdb6vwkz3PKL for ; Sun, 4 Sep 2022 03:16:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MKxdb5zGYzMRB for ; Sun, 4 Sep 2022 03:16:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2843GpIC036138 for ; Sun, 4 Sep 2022 03:16:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2843GpSJ036137 for doc@FreeBSD.org; Sun, 4 Sep 2022 03:16:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 266214] PDF version of FreeBSD handbook (in zh-cn) has missing characters Date: Sun, 04 Sep 2022 03:16:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Books & Articles X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henry.hu.sh@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662261412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dJhGfREbfwkQ1p2FbrELb/kR/XaR9VMpVvLkpDqvc/k=; b=Hl4E5BKaLebsnkO6PxaoskTvo0HvhYaKocXiqfOiQ3F7Ee+Q580UvbEQczqSsjqYSR2K9z Cey/iVUkTAN2jGw0xFEmOoAj3kUwaqALgr7GIT6ysCQ4irMHSALfcAkKAZWllUgULx20zo t0wsNinIj1K30fsYxdLsaOw8Hr0aOUSekfKUWH8TnasdfBM2d8QDQSc2tIjg2z8k5m9f6R jhrHSSiEpEQ+6lHSmxwygg0xVq3BDpPVDJAmi0yRvsn6hsxWC8/yLoAW5IZrAQqS5XEzwl 0y8zBQRs7guQelZ50DEeM+x1zavkIsOxN02vmVXLaS8YTGpA5ZoxnutepermDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662261412; a=rsa-sha256; cv=none; b=Y4aNJL06AyFcEED//ZKCnW4I8cMGpadzcFQR8QfWRFmjCM0ZYDUgYO4TONb+8EfKH5SBx9 hrY4PJ+mmEJ15O51Xrnxw64lxNkBcZyxQ1g1PZHf9IOMWAs88fq4Fq+lkMbvl/rPStA6xX 3V/ksfOaLgxtY/JXbn1Rgli7jqmxGvIQfJKw/Rnddw8m+4wPyq01FWmsGuIVc2Zq6Z+2mW gkbIZoL9gO3iNsGiq7i0WKfnM/MChS8YF3tt9yTQT3wT2h9DdkDhlaU+JFHLL09fnXD+j6 9qwQPIYzoa3xVb2C14p5K191PTT10FxYszCsn+0NZMkvIQ6nNI2JulaOwqiujQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=