Bug 288780

Summary: Measure glyphs in a single CoreText call rather than repeated calls
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: New BugsAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 289969    

Brent Fulgham
Reported 2025-02-27 16:26:07 PST
Rather than calling `CTFontGetBoundingRectsForGlyphs` once for each glyph (and passing a single `CGRect` to get the size), collect all glyphs needing measurement and ask for the entire set to be done at once. In theory, this will avoid the repeated work of creating graphics contexts, selecting a specific font face into it, transforming, etc., before making the measurement.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-02-27 16:26:34 PST
Brent Fulgham
Comment 2 2025-02-27 16:34:28 PST
EWS
Comment 3 2025-03-14 17:25:18 PDT
Committed 292198@main (9c7a8b926440): <https://commits.webkit.org/292198@main> Reviewed commits have been landed. Closing PR #41576 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.