Testing the 'mathvariant' attribute as well as testing what fonts/glyphs are installed on a user's system.
<math xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> <mtr> <mtd> <mi mathvariant="fraktur">ABCDEFGHIJKLMNOPQRSTUVWXYZ</mi> <mi mathvariant="fraktur">abcdefghijklmnopqrstuvwxyz</mi> </mtd> </mtr> <mtr> <mtd> <mi mathvariant="bold-fraktur">ABCDEFGHIJKLMNOPQRSTUVWXYZ</mi> <mi mathvariant="bold-fraktur">abcdefghijklmnopqrstuvwxyz</mi> </mtd> </mtr> <mtr> <mtd> <mi mathvariant="double-struck">ABCDEFGHIJKLMNOPQRSTUVWXYZ</mi> <mi mathvariant="double-struck">abcdefghijklmnopqrstuvwxyz</mi> </mtd> </mtr> <mtr> <mtd> <mi mathvariant="script">ABCDEFGHIJKLMNOPQRSTUVWXYZ</mi> <mi mathvariant="script">abcdefghijklmnopqrstuvwxyz</mi> </mtd> </mtr> <mtr> <mtd> <mi mathvariant="bold-script">ABCDEFGHIJKLMNOPQRSTUVWXYZ</mi> <mi mathvariant="bold-script">abcdefghijklmnopqrstuvwxyz</mi> </mtd> </mtr> </mtable> </math>
Author: Dave Doyle, Design Science