Chromium Code Reviews
DescriptionAvoid checking family name in getLastResortFallbackFont() on Windows
Windows can return a valid SkTypeface even when requested name does not
exist. FontCache checks if the family name of the SkTypeface returned
from Skia matches to the requested name.
This patch disables the check in getLastResortFallbackFont(). In this
case, finding a font is more important than finding the font with the
requested family name.
This change eliminates one possible case where
getLastResortFallbackFont() can return nullptr on Windows.
BUG=561873
Review-Url: https://codereview.chromium.org/2692803005
Cr-Commit-Position: refs/heads/master@{#450372}
Committed: https://chromium.googlesource.com/chromium/src/+/ff7fede033b10623c7085324f7e02cf338478f40
Patch Set 1 : #
Messages
Total messages: 21 (17 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||