note 107236 modified in function.imagettftext by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 21:36:09 +0000 |
| Subject: | note 107236 modified in function.imagettftext by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187913@lists.php.net to get a copy of this message | ||
This function can be tricky. To begin with the example that omits the ".ttf" from
the name of the font is incorrect. I've found that I have to include it (perhaps different
in Windows?). I have also found that odd things happen if you
happen to pick a font size that doesn't match one of the known fonts.
--was--
This function can be tricky. To begin with the example that omits the ".ttf" from the name
of the font is incorrect. I've found that I have to include it (perhaps different in Windows?).
I have also found that odd things happen if you happen to pick a font size that doesn't match
one of the known fonts.
See my comment under imagecolortransparent for trying to use a transparent background with text.
http://php.net/manual/en/function.imagettftext.php