Canvas Text Replacement

sIFR without the flash!

Myles Eftos

MadPilot Productions

Web fonts suck

JavaScript text replacement helps

I want to see!

How it works

It's pretty simple

  1. Convert TTF into vector data - all lines and quadratic curves
  2. Read in innerHTML of the element
  3. Read the CSS styles of the element to be replaced
  4. Render each character
Vector data becomes a character

Pros and Cons?

Why would you use it?

  • Accessible
  • Degradable
  • Doesn't require a proprietary technology
  • Scalable
  • Doesn't suffer from Flash overlay issue

Why wouldn't you use it?

  • Lose Cut-and-paste
  • CPU intensive
  • Wouldn't want to do long passages of text