Bug 263261 - Font fallback for Private-Use Area Unicode (PUA) code points use generic families
Summary: Font fallback for Private-Use Area Unicode (PUA) code points use generic fami...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-17 10:57 PDT by Vitor Roriz
Modified: 2023-10-24 16:59 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.