html5 font google api

How to Use Google Web Fonts in your HTML5 Canvas

Being able to use HTML5's .filltext() and .stroketext() methods and not having to rely on rasterized text images inside a canvas is great, but it is easy to feel stuck with only being able to use the typical Arial or Times New Roman fonts that come loaded up with any browser. Without the ability to simply rely that your users will have the same fonts loaded that you do, you can have your site reference a font from Google's growing directory of web fonts so that all users will view the same font!