blob: 4b40de485a74fc682843988d401d2c079b882237 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals) {
window.internals.settings.setStandardFontFamily("Ahem", "Hans");
window.internals.settings.setFantasyFontFamily("Ahem", "Hans");
window.internals.setUserPreferredLanguages("en", "zh-cn");
}
</script>
</head>
<body>
<!-- This tests locale-sensitive font selection. Using overridePreference, the
fonts for Simplified Han are to Ahem font. So all divs should match. -->
<div style="font-size: 20px">
<div style="font-family: 'Ahem'">this is ahem font</div>
<div style="-webkit-locale: 'zh_CN'">this is ahem font</div>
<div style="-webkit-locale: 'zh_CN'; font-family: fantasy">this is ahem font</div>
</div>
</body>
</html>