This is a small but useful class that generates an image containing the text in the font you specify.
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" />