Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

typeface.js. Outstanding hack—renders custom fonts using VML in IE and canvas in everything else, using fonts that are defined as a set of vector paths stored using JSON.

Tagged , , , , , ,

5 comments

  1. Hrm, I don't think IE8 (beta 2) supports VML in standards mode anymore (it is still there in quirks mode.)

    Shawn Medero - 28th October 2008 00:29 - #

  2. It's a shame that they didn't use SVG in the non-IE case, since it looks bad when zoomed. Still quite impressive, though.

    Martin Atkins - 28th October 2008 06:34 - #

  3. They could follow steps of google maps' team and encode glyphs data to base64-like strings for better compression.

    arty - 28th October 2008 19:29 - #

  4. Pretty, but completely impervious to copy-and-paste as far as I can tell. Even Flash-based SIFR seemed to allow copying. I'd hate to see whole paragraphs in a blog post wired up this way

    l.m.orchard - 29th October 2008 16:33 - #

  5. my wife just pointed out they could layer the plain text underneith the rendered font in order to let you copy and paste... good idea.

    joe - 30th October 2008 19:00 - #

Comments are closed.
A django site