How can I use custom fonts in an HTML5 Canvas element?
I've looked at things like Cufon and typeface.js but they seem to be SIFR alternatives and don't allow you to set freeform coordinates and draw custom type onto a <canvas> Anyone got any ideas? miketaylr I've thrown together a simple demo on jsfiddle here showing how to do this with @font-face: http://jsfiddle.net/zMKge/ Opera also has a simple tutorial on using <canvas> , including the text API. CSS: @font-face { font-family: 'KulminoituvaRegular'; src: url('http://www.miketaylr.com/f/kulminoituva.ttf'); } Javascript: var ctx = document.getElementById('c').getContext('2d'); var kitty = new