OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <style type="text/css"> |
| 6 @font-face { |
| 7 font-family: libertinerangesplit; |
| 8 src: url("../../third_party/Libertine/LinLibertine_R.woff"); |
| 9 unicode-range: U+0066, U+0069; |
| 10 } |
| 11 |
| 12 @font-face { |
| 13 font-family: libertinefull; |
| 14 src: url("../../third_party/Libertine/LinLibertine_R.woff"); |
| 15 } |
| 16 |
| 17 .test { |
| 18 font-size: 200px; |
| 19 } |
| 20 |
| 21 #libertinerangesplit { |
| 22 font-family: libertinerangesplit; |
| 23 } |
| 24 |
| 25 #libertinefull { |
| 26 font-family: libertinefull; |
| 27 } |
| 28 </style> |
| 29 |
| 30 <script src="../../resources/testharness.js"></script> |
| 31 <script src="../../resources/testharnessreport.js"></script> |
| 32 |
| 33 <script type="text/javascript"> |
| 34 |
| 35 async_test(function(testHandle) { |
| 36 document.fonts.ready.then( function() { |
| 37 testHandle.step( function() { |
| 38 rangesplitwidth = document.querySelector("#libertinerangesplit").get
BoundingClientRect().width; |
| 39 fullwidth = document.querySelector("#libertinefull").getBoundingClie
ntRect().width; |
| 40 assert_equals(rangesplitwidth, fullwidth); |
| 41 }); |
| 42 testHandle.done(); |
| 43 }); |
| 44 }, "Ligature for fi formed for full font and subsetted font."); |
| 45 |
| 46 </script> |
| 47 </head> |
| 48 <body> |
| 49 <div class="test"> |
| 50 <span id="libertinerangesplit">fi</span> |
| 51 <span id="libertinefull">fi</span> |
| 52 </div> |
| 53 </body> |
OLD | NEW |