Now that you’ve created your font, you can replace any text in your templates. Simply use the helper method “replace” as such:
echo Mage::helper('brim_fonts')->replace('.product-name h1', 'Chalkduster')
Installation of this module can be a bit tricky, but we’re happy to help out with any installations. You’ll start by installing the Brim/Fonts module into your app/code/local directory.
Once this has been done, you have all the code necessary to enable the module. You’ll want to create a Brim_Fonts.xml file in your app/etc/modules directory just like any other module to make it active.
The only configuration for this module is specifying the location of the fontforge executable. Cufon sits on top of fontforge, so you need to have it installed on your server in order for it generate your fonts from your .ttf files. You can install fontforge from here : http://fontforge.sourceforge.net/. Once this is installed, you need to update your app/code/local/Brim/Fonts/etc/config.xml to know where the location of your fontforge resides. As you can see in the file by default, the location of my fontforge is /usr/local/bin/fontforge.
Again, we’re happy to help with any installations, so let us know if you have any questions.
– EDIT [1/6/11] –
Oguz (see comments section) noticed something I missed and was kind enough to email me. I forgot to include that you’ll need to add the cufon js to any page you’d like to replace fonts. In your layout handle, you can do something like this: