blink::FontCache associates FontPlatform with the font size. However on other platforms than Mac, typefaces are independent of the font size and can be shared on different font sizes.
We should remove the font size from FontCacheKey to make the cache coarser grained, so that we can reduce the heavy font query in the layout phase.
Context:
https://codereview.chromium.org/1919183002/https://codereview.chromium.org/1931393002/
> on other platforms than Mac
This can have a better granularity I guess, just checking availability of `trak` table using current available harfbuzz API, or, making harfbuzz to provide an API for it. After that I guess it would be nice to make it default and remove the flag, if suitable.
Comment 1 by tzik@chromium.org
, May 3 2016Labels: Performance