4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <link rel=
"stylesheet" type=
"text/css" href=
"resources/text-scaling.css">
8 font-family: 'Open Sans';
11 src: url('../../../resources/opensans/OpenSans-Regular.woff') format('woff');
14 font-family: 'Open Sans', 'Segoe UI';
17 <script src=
"resources/text-scaling.js"></script>
18 <script src=
"../../../resources/js-test.js"></script>
22 <h1>Font Size Scaling (WebFont, Latin)
</h1>
24 Size of the text should scale smoothly.
25 Reported width should be within
0.02px of that of the highlighted reference row.
30 if (window
.testRunner
&& window
.testRunner
.setTextSubpixelPositioning
)
31 window
.testRunner
.setTextSubpixelPositioning(true);
33 var PANGRAM
= 'My faxed joke won a pager in the cable TV quiz show.';
34 var results
= runTest(document
.getElementById('test'), PANGRAM
);
36 if (results
== PASS
) {
37 testPassed('Size of text scales smoothly and width scales with font size as expected.');
39 // Hide text if test passes as the actual numbers are
40 // different across platforms and would require platform
41 // specific baselines.
42 if (window
.testRunner
)
43 document
.getElementById('test').style
.display
= 'none';
45 testFailed('Size of text does not scale smoothly, reported widths highlighted in red do not match reference row.');