Bug 310945

Summary: CanvasRenderingContext2DBase: Use FontFamily::isGeneric() for canvas font serialization
Product: WebKit Reporter: Vitor Roriz <vitor.roriz>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: fantasai.bugs, vitor.roriz, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Vitor Roriz
Reported 2026-03-27 19:18:01 PDT
Now that FontCascadeDescription stores FontFamily structs with FontFamilyKind, we can use isGeneric() to determine whether a font family is a generic keyword instead of string-matching against known CSS keywords via cssValueKeywordID/isGenericFontFamilyKeyword.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-03-27 19:18:09 PDT
Vitor Roriz
Comment 2 2026-03-27 19:20:00 PDT
EWS
Comment 3 2026-03-27 22:07:35 PDT
Committed 310135@main (c656cc7ac0ca): <https://commits.webkit.org/310135@main> Reviewed commits have been landed. Closing PR #61542 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.