OLD | NEW |
1 <html> | 1 <html> |
2 <!-- Use a fake font family for all of the text that we draw. | 2 <!-- Use a fake font family for all of the text that we draw. |
3 The setTextSubpixelPositioning() call changes a global text style | 3 The setTextSubpixelPositioning() call changes a global text style |
4 setting. It gets reset after we're dumped, but if we run first, our | 4 setting. It gets reset after we're dumped, but if we run first, our |
5 style would be cached and would affect other tests, and if we run after | 5 style would be cached and would affect other tests, and if we run after |
6 another test, we'd use its cached style and subpixel positioning won't be | 6 another test, we'd use its cached style and subpixel positioning won't be |
7 enabled. --> | 7 enabled. --> |
8 <body style="font-family:SubpixelPositioning"> | 8 <body style="font-family:SubpixelPositioning"> |
9 <script> | 9 <script> |
10 if (window.testRunner) { | 10 if (window.testRunner) { |
11 testRunner.setTextSubpixelPositioning(true); | 11 testRunner.setTextSubpixelPositioning(true); |
12 } | 12 } |
13 </script> | 13 </script> |
14 | 14 |
15 <p>This test requires a Linux build of DumpRenderTree, as it needs to turn | 15 <p>This test requires a Linux build of DumpRenderTree, as it needs to turn |
16 on subpixel positioning.</p> | 16 on subpixel positioning.</p> |
17 | 17 |
18 <p>This text should be rendered using subpixel positioning. Glyphs should | 18 <p>This text should be rendered using subpixel positioning. Glyphs should |
19 be placed at non-integral positions, and in the following string of repeated | 19 be placed at non-integral positions, and in the following string of repeated |
20 "l" characters, the glyphs should not all be rendered | 20 "l" characters, the glyphs should not all be rendered |
21 identically: llllllllllllllllllllll</p> | 21 identically: llllllllllllllllllllll</p> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |