1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
6 if (window.internals) {
7 window.internals.settings.setStandardFontFamily(
"Ahem",
"Hans");
8 window.internals.settings.setFantasyFontFamily(
"Ahem",
"Hans");
13 <!-- Test for language-sensitive font selection (bug 10874). Some fonts for
14 Simplified Han script is set to Ahem and the divs are set to language zh_CN
15 which corresponds to that script. The test passes if all divs are in Ahem
18 <div style=
"font-size: 20px">
19 <div style=
"font-family: 'Ahem'">this is ahem font
</div>
20 <div lang=
"zh-CN">this is ahem font
</div>
21 <div id=
"target1" lang=
"ar">this is ahem font
</div>
22 <div id=
"target2" lang=
"ar" style=
"font-family: sans-serif">this is ahem font
</div>
23 <div xml:
lang=
"zh-CN">this is ahem font
</div>
26 document.getElementById(
"target1").lang =
"zh-CN";
28 document.getElementById(
"target2").lang =
"zh-CN";
29 document.getElementById(
"target2").style.fontFamily =
"fantasy";