• Dominik Röttsches's avatar
    Fallback to FreeType for COLR/CPAL on pre Windows 8.1 systems · ef5b4a01
    Dominik Röttsches authored
    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: default avatarEmil A Eklund <eae@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#592743}
    ef5b4a01
enums.xml 2.23 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.