Fallback to FreeType for COLR/CPAL on pre Windows 8.1 systems
The availability of IDWriteFontFactory2 (which has the TranslateColorGlyphRun method on it) is equivalent to the ability of the underlying DirectWrite implementation to render COLR/CPAL fonts. We are using this detection to find out whether we are running on a system that can render COLR/CPAL natively, otherwise pass the web font to a COLR/CPAL SkFontMgr based on FreeType. Tests updated to reliably test rendering results for COLR/CPAL including our Windows 7 bots. Mac detection to do the same fallback for OS versions below Mac OS 10.13 will follow in a subsequent CL. Bug: 882844 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I5f5aa16cbb176d22d229dee05619419cbb8bb892 Reviewed-on: https://chromium-review.googlesource.com/1219887 Commit-Queue: Dominik Röttsches <drott@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#592743}
Showing
25.6 KB
34.7 KB
20.9 KB
30.1 KB
21 KB
25.6 KB
30.1 KB
34.7 KB
32.8 KB
32.9 KB
45.1 KB
44.5 KB
32.8 KB
32.6 KB
44.1 KB
44.2 KB
32.7 KB
32.7 KB
44.1 KB
43.7 KB
20.8 KB
16.2 KB
29.7 KB
20.7 KB
21.9 KB
19.5 KB
31 KB
25.7 KB
File added