DescriptionChange the system font fallback to take lang attributes into account on Windows
This patch changes the system font fallback logic on Windows to take
lang attributes into account.
When a code point is missing in all specified fonts, Blink determines
fonts to use by using Unicode properties for the character.
The UI locale is also used for characters of Asian scripts where
multiple scripts share a large set of the code points.
This patch takes the specified lang attribute to take precedence over
the UI locale. When language tag does not help to determine the script
for the unified ideographs, subtags such as script or country are also
used.
All test rebaselines are where lang attributes are used, and new
results use the correct font for the specified lang.
BUG=579492
Committed: https://crrev.com/9ab3e68a0f7b8b71ccca2257d85a06277cac73ff
Cr-Commit-Position: refs/heads/master@{#370703}
Patch Set 1 #Patch Set 2 : TestExpectations #Patch Set 3 : Add rebaseline result from bot #Patch Set 4 : Add another test as per drott review #Patch Set 5 : Fix TestExpectations for the new test #Messages
Total messages: 22 (11 generated)
|