Stop testing variable system fonts on macOS 10.11.
Support for variable fonts on macOS earlier than 10.12 was incomplete. CGFonts supported variations fairly well by themselves, but hid the tag name of the axes. CTFonts only supported named variations of system fonts (which meant only Skia). It is possible to create a CTFont from a CGFont, but this can into various bugs (because the CTFont didn't really know about the variations in the CGFont). Beginning in 10.12 it is possible to create a CTFont from data and set a variation on it directly, allowing for much simpler code, a path forward for better and faster API, and a possible reduction in font data leaking. The only real observable affect of this change will be that the Skia system font on macOS 10.11 will stop varying. Blink will still use FreeType to render variable webfonts on macOS 10.10 and 10.11. Change-Id: I7c188f4245af1b36c6e258a17935710a1ac02076 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937778 Commit-Queue: Ben Wagner <bungeman@chromium.org> Commit-Queue: Dominik Röttsches <drott@chromium.org> Reviewed-by:Dominik Röttsches <drott@chromium.org> Cr-Commit-Position: refs/heads/master@{#719413}
Showing
Please register or sign in to comment