mathscript-1.html (1075B)
1 <!DOCTYPE html> 2 <head> 3 <link rel="match" href="mathscript-1-ref.html"/> 4 <style type="text/css" media="screen, print"> 5 @font-face { 6 font-family: "mathssty"; 7 src: url("mathssty.woff"); 8 } 9 </style> 10 </head> 11 <body> 12 13 <!-- Demonstrate that it has no effect outside MathML --> 14 <div style="font-family: 'mathssty'; 15 font-feature-settings: 'ssty' 1">A</div> 16 <div style="font-family: 'mathssty'; 17 font-feature-settings: 'ssty' 2">A</div> 18 19 <!-- Demonstrate that it works within MathML --> 20 <math> 21 <mstyle style="font-family: 'mathssty';"> 22 <mrow> 23 <mo style="font-feature-settings: 'ssty' 0">A</mo> 24 <mo style="font-feature-settings: 'ssty' 1">A</mo> 25 <mo style="font-feature-settings: 'ssty' 2">A</mo> 26 </mrow> 27 </mstyle> 28 </math> 29 <p> 30 <!-- verify it works for the other elements except mtext --> 31 <math> 32 <mstyle style="font-family: 'mathssty'; font-feature-settings: 'ssty' 2"> 33 <mi mathvariant="normal">A</mi> 34 <mn>A</mn> 35 <mtext>A</mtext> 36 </mstyle> 37 </math> 38 </body>