Bug 263261

Summary: Font fallback for Private-Use Area Unicode (PUA) code points use generic families
Product: WebKit Reporter: Vitor Roriz <vitor.roriz>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/42660

Description Vitor Roriz 2023-10-17 10:57:26 PDT
According to spec:

> If a given character is a Private-Use Area Unicode codepoint, user agents must only match font families named in the font-family list that are not generic families. If none of the families named in the font-family list contain a glyph for that codepoint, user agents must display some form of missing glyph symbol for that character rather than attempting installed font fallback for that codepoint.

(https://drafts.csswg.org/css-fonts-4/#char-handling-issues)

We are currently not ignoring generic font families for font fallback when a code point is in the private-use area (PUA).
Comment 1 Vitor Roriz 2023-10-17 11:09:43 PDT
<rdar://problem/115901340>
Comment 2 Vitor Roriz 2023-10-17 11:10:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19174
Comment 3 EWS 2023-10-19 07:51:10 PDT
Committed 269524@main (4535075b56fd): <https://commits.webkit.org/269524@main>

Reviewed commits have been landed. Closing PR #19174 and removing active labels.
Comment 4 Vitor Roriz 2023-10-24 10:47:16 PDT
Re-opening for pull request https://github.com/apple/WebKit/pull/870
Comment 5 EWS 2023-10-24 16:58:57 PDT
Committed 267815.424@safari-7617-branch (8c7be2b8800b): <https://commits.webkit.org/267815.424@safari-7617-branch>

Reviewed commits have been landed. Closing PR #870 and removing active labels.