Closed Bug 1639813 Opened 5 years ago Closed 5 years ago

Missing glyphs in font from pdf2htmlex converter in Mac OS 10.15

Categories

(Core :: Graphics: Text, defect)

75 Branch
Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: Joanna, Assigned: jfkthame)

Details

Attachments

(2 files)

Attached image normal.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36

Steps to reproduce:

open https://d32j6uwsrra4gx.cloudfront.net/dyna_questions/ks_2016/elementary/106_s1/106%E5%BA%B7%E8%BB%92%E7%89%88%E6%95%B8%E5%AD%B83%E4%B8%8A%201%2010000%E4%BB%A5%E5%85%A7%E7%9A%84%E6%95%B8_5_0.html

Actual results:

it shows irrelative symbols or characters
it occurred on chrome too
https://bugs.chromium.org/p/chromium/issues/detail?id=1072921
they have a work around

Expected results:

see the attached normal.png

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

Based on the info in the chromium bug, I think the easiest way forward here would be to make the OpenType Sanitizer apply stricter validation to the characters in the PostScript name. If we limit it to URI-safe codepoints, then "unusual" names such as in this resource will be dropped and replaced by OTS's placeholder name, and the font then works on macOS.

I've opened https://github.com/khaledhosny/ots/pull/207 to add this capability to OTS, under control of the client application; once that is accepted, we can use it in Gecko to resolve this problem.

Status: UNCONFIRMED → NEW
Component: Layout: Text and Fonts → Graphics: Text
Ever confirmed: true
OS: Unspecified → macOS
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f8b708650d9a Update OTS to upstream commit 6300460f76dbf1554a59dc1f20f52d5c2f5641e6 to clean up weird PSname that makes Core Text fail. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78

Thank you very much.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: