This is a small but useful class that generates an image containing the text in the font you specify. A simple to use replacement for something like the Javascript cufon library when Javascript is not available or a lightweight and fast replacement for Flash based text. You can use it anywhere you can embed an image. Your seeing it in use right now!
$ti = new TextImage(); echo $ti->generate("Hello World", "CaviarDreams.ttf", 12, "FF0064"); <img class="textImage" src="cache/d56c1c9f4300018b7a8393cb436e955d.png" alt="Hello World" />