blob: 7f06a94112cc8b469178fc86960f05483a4e55b3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals) {
internals.settings.setStandardFontFamily("Ahem", "Hans");
internals.settings.setFantasyFontFamily("Ahem", "Hans");
internals.setUserPreferredLanguages("en", "zh-cn");
}
</script>
</head>
<body>
<!-- This tests locale-sensitive font selection. Using internals.settings, the
fonts for Simplified Han are set to the Ahem font. 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>