font-face-unicode-range-2.html (997B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Test: font-face unicode-range</title> 4 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 5 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#unicode-range-desc"> 6 <link rel="match" href="font-face-unicode-range-2-ref.html"> 7 <meta name="assert" content="Check that font-face unicode-range restrics use of glyphs outside that range"> 8 <style> 9 @font-face { 10 font-family: base; 11 src: url(support/fonts/LigatureSymbolsWithSpaces.woff); 12 } 13 @font-face { 14 font-family: swoosh; 15 src: url(support/fonts/Rochester.otf); 16 unicode-range: U+26; 17 } 18 .test { 19 font-family: swoosh, base; 20 } 21 .ref { 22 font-family: base; 23 } 24 .ref .amp { 25 font-family: swoosh, base; 26 } 27 div { 28 font-size: 5em; 29 } 30 </style> 31 <body> 32 <p>Test passes if the two lines look the same, with just the ampersand in italic</p> 33 <div class="ref">This <span class="amp">&</span> That</div> 34 <div class="test">This & That</div> 35 </body>