• Avi Drissman's avatar
    Do clean up in PlatformFontMac · b0e19202
    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.
    
    This re-lands c2e39ede.
    It turns out that DCHECKs do evaluate everything in them
    so wrap it with DCHECK_IS_ON().
    
    Bug: 1101426
    Change-Id: I1194b4aa127223456b432d12c47d248264d87c85
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342387Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
    Commit-Queue: Avi Drissman <avi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#796478}
    b0e19202
platform_font_mac_unittest.mm 9.44 KB