Bug 288780
Summary: | Measure glyphs in a single CoreText call rather than repeated calls | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> |
Component: | New Bugs | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/145797633>
Brent Fulgham
Pull request: https://github.com/WebKit/WebKit/pull/41576
EWS
Committed 292198@main (9c7a8b926440): <https://commits.webkit.org/292198@main>
Reviewed commits have been landed. Closing PR #41576 and removing active labels.