Howard Rauscher has made a handy JQuery plugin script for testing users’ browser for a particular font support.
The basic idea is:
- Create an empty span
- Insert characters (a-z) into the span
- Apply a fake font to the span style
- Measure the span width, say, W1
- Apply the testing font to the span style (by doing element.css(’font-family’, testFontName);)
- Measure the span element width again, say, W2
- Compare W1 and W2 to see if they are the same. If yes, the testing font is not available (since applying testing font makes no difference than applying a fake font); otherwise the testing font is available
You can find the original post here:
fontAvailable: Test to see if a font is available
oli
e… I didn’t know that you have your own website. From the look of the address… do u own ur own domain??