- Simplified Chinese
- Traditional Chinese
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" />
27 May 11
6 October 11
PHP 5.x, PHP 5.0 - 5.2, PHP 5.3