WordPress
  • Services
  • Work
  • Blog
  • Contact

How to check for specified fonts

This is a quick little jQuery script that test for the presence of a font on the client, by comparing the width of two spans of the same text, one is a monospace control, and the other is assigned the font. If the font is not present, the text defaults to monospace, and therefore would have the same width as the control. Clever.

Permalink

Web Application Design & Development
from beautiful Burlington, VT

[email protected]
480.459.6720

© 2022 Okay Plus, 47 Maple St, Suite 220, Burlington, VT 05401

TwitterFacebookLinkedInDribbbleGitHub