blob: 66016a89e4687f4fd731ba26ab3c7e1d4fd13f0c [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>
</body>
</html>