• Avi Drissman's avatar
    Do clean up in PlatformFontMac · c2e39ede
    Avi Drissman authored
    Do not try to derive one weight of font from another.
    Use the API to directly generate them.
    
    PlatformFontMacTest.FontWeightAPIConsistency tested that
    our understanding of shifting weights up and down was
    correct. The code no longer shifts weights up and down
    as that is unreliable and version-specific, so there is
    no need to test weight shifting and it is removed.
    
    This also fixes Big Sur issues.
    
    Bug: 1101426
    Change-Id: I2165c3550ad295b3ee7742f3289874ed2bb89c68
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340262
    Commit-Queue: Avi Drissman <avi@chromium.org>
    Auto-Submit: Avi Drissman <avi@chromium.org>
    Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#796044}
    c2e39ede
platform_font_mac.mm 22.3 KB