Cufon: Alternative to sIFR

To generate the scripts, you can choose to do that from the cufon site
http://cufon.shoqolate.com/generate/

or, download a copy of the script from github and install it in your local computer
http://github.com/sorccu/cufon/tree/master

If you download the files, then you need to untar the files and create your local site. If fontforge is not installed, you need to install it in your machine before you can proceed with generating the cufon script for the font and make the necessary changes in generate/settings.ini file.

Note:
Ensure that you have atleast PHP 5.2 version as there are certain libraries like json_encode used in the cufon scripts which gets included in version >5.2 in PHP
$ php -ver
will give the version of your php.

Below is a sample script used for testing cufon scripts with two fonts

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<script src=”js/cufon-min.js” type=”text/javascript”></script>
<script src=”fonts/Frutiger_LT_Std.font.js” type=”text/javascript”></script>
<script src=”fonts/Aerovias_Brasil.js” type=”text/javascript”></script>
<script type=”text/javascript”>
Cufon.replace(‘h1’, {fontFamily: ‘Frutiger LT Std’});
Cufon.replace(‘h2’, {fontFamily: ‘Aerovias Brasil NF’});
</script>
</head>
<body>
<h1>This text will be shown in Frutiger LT Std.</h1>
<h2>This is the normal text font</h2>
</body>
</html>

Read through the cufon wiki at the below location to get you started http://wiki.github.com/sorccu/cufon/usage. The site give you some tips about using multiple fonts and about how to overcome the IE delayed font delivery issue.

If there are any problems in running the cufon script check /var/log/error_log to get further details.