kangax/fabric.js — pull request #194 by Wolfy87 (2012-07-06 14:53:56+00:00)
Title: Render text without Cufon

I have added a first attempt at rendering text without Cufon using your commented out `_render` method as a starting point. It will use the native methods in your browser if Cufon is not present on the page or if the `useNative` setting is set to true.

The build script now requires you to explicitly require `text-cufon` for Cufon to be loaded into `all.js`. If you just specify `modules=ALL` then Cufon will not be included, `modules=ALL,text-cufon` is required for it to be added.

It will render text in the same was as Cufon did but lacks a few things due to the font API being pretty sparse. Namely the `textDecoration`, `textShadow`, `background` and `path` settings will be ignored. This cannot be helped I'm afraid.

So you can use a lightweight version if you need basic text (like me), and load a Cufon version if you need advanced text.