Web Font Embedding With JavaScript

As an alternative to using @font-face, there are ways to embed font data into Web pages that are cross-browser compatible using the JavaScript. While this allows you to use virtually any font (although EULAs should still be considered), using JavaScript for fonts is primarily intended for adding display fonts for headlines or other short blocks of text.

Font detection with JavaScript

lalit.org/lab/javascript-css-font-detect

Lalit Patel has created a JavaScript that “detects” whether a specific font is installed by measuring the width and height of the length of the text string mmmmmmmmmml ...

Get Fluid Web Typography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.