5 if (window
.internals
) {
6 window
.internals
.settings
.setStandardFontFamily("Ahem", "Hans");
7 window
.internals
.settings
.setFantasyFontFamily("Ahem", "Hans");
12 <!-- Test for language-sensitive font selection (bug 10874). Some fonts for
13 Simplified Han script is set to Ahem and the divs are set to language zh_CN
14 which corresponds to that script. The test passes if all divs are in Ahem
15 font, except for the final div as xml:lang should be ignored in HTML.
17 <div style=
"font-size: 20px">
18 <div style=
"font-family: 'Ahem'">this is ahem font
</div>
19 <div lang=
"zh-CN">this is ahem font
</div>
20 <div id=
"target1" lang=
"ar">this is ahem font
</div>
21 <div id=
"target2" lang=
"ar" style=
"font-family: sans-serif">this is ahem font
</div>
22 <div xml:
lang=
"zh-CN">this is not ahem font
</div>
25 document
.getElementById("target1").lang
= "zh-CN";
27 document
.getElementById("target2").lang
= "zh-CN";
28 document
.getElementById("target2").style
.fontFamily
= "fantasy";