DescriptionPass DOM locale to Skia in FontCache::getFontDataForCharacter
Android OS has different font fallback lists for differnet locales.
Originally we let Skia select the fallback fonts based on the system
locale, without respecting the language specified by the web page.
Pass DOM locale to Skia so that it can fallback fonts according to the
DOM locale. This is important for example to display pages in Japanese
while the system locale is English.
Also distinguish FontData and PlatformFontData for different locales
in FontCache, so included locale in the hash key of them, otherwise
we may get glyphs from the glyph cache for wrong locale.
For now this change affects behavior on Android only.
BUG=266412
TEST=ManualTest/font-fallback-locale.html
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : Distinguish FontData and PlatformFontData for different locales #Patch Set 4 : Pure Android only #
Total comments: 8
Messages
Total messages: 17 (0 generated)
|