|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <style type="text/css"> |
|
5 @font-face { |
|
6 font-family: dvsm; |
|
7 src: url(../fonts/DejaVuSansMono.woff); |
|
8 } |
|
9 |
|
10 p { |
|
11 font-family: dvsm; /* family with only a single weight */ |
|
12 } |
|
13 |
|
14 .test { |
|
15 color: white; /* hide the text, we're only comparing metrics */ |
|
16 font-weight: bold; /* synthetic bold will be used */ |
|
17 } |
|
18 </style> |
|
19 </head> |
|
20 <body> |
|
21 <p>AbcdefghijklmnopqrstuvwxyZ</p> |
|
22 <!-- the "test" span here uses synthetic bold, which should cause the following |
|
23 'Z' to appear further to the right --> |
|
24 <p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p> |
|
25 </body> |
|
26 </html> |