Change 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 Review URL: https://codereview.chromium.org/1607943004 Cr-Commit-Position: refs/heads/master@{#370703}
Showing
Please register or sign in to comment