Cufon
The Cufon module adds integration with the Cufón Javascript library to Drupal. Cufón performs text replacement on web pages, using the canvas element and VML to render fancy typefaces.
Quick start
- Enable the module and set permissions.
- Download cufon-yui.js and place it in the modules
jsdirectory. - Generate a font definition and upload it anywhere in your theme folder. Make sure you keep it legal.
- Configure Cufon by associating a jQuery selector with any of the detected fonts in
admin/settings/cufon.
Please refer to the module's README.txt for more detailed configuration information.
Gotchas
You might want to use a selector such as #myID li a:not("li li a") to apply Cufon to the top level of a list (see this thread). To do this, you must use jQuery Update 6.x-2.x to use jQuery 1.3.x, which has better selector support.
Questions
Why not integrate with Dynamic Render from the get go?
To write a strong implementation that covers all of Cufon's quirks before trying to implement it against Someone Else's API.
Will Cufon be integrated with Dynamic Render?
If it makes sense.
What are other text replacement options?
Signwriter, TextImage, and Facelift Image Replacement. I've had good luck with Signwriter. Use the module which best fits your needs.
Why don't you distribute this module with a test font or two?
The GPL font exception suggests that a GPL'd, embedded font implies (or confers) the GPL license on the document itself. A modified version of the GPL is required to get around this problem, but that won't fly in the Drupal CVS repository, and the possibility of accidentally open sourcing one's text is perverse. You can always download the test font used by the Cufon package.
