Re: Writing text into images, and setting text size
| From: | Dave M G | Date: | Mon, 17 Dec 2007 09:46:57 +0000 |
| Subject: | Re: Writing text into images, and setting text size | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265970@lists.php.net to get a copy of this message | ||
Casey,
Thank you for replying.
Try imagettftext().I did, as explained:
So my questions remain:$font = '/usr/share/fonts/truetype/freefonts/FreeSans.ttf'; $imagettftext($image, 20, 0, $x, $y-10, $textColour, $font, $text);
Thank you for any advice. -- Dave M G1. 'FreeSans.ttf' is in my /usr/share/fonts/truetype/freefonts directory. But specifying it doesn't seem to work. How do I get the system to find the font? 2. I need the scripts I'm writing to be portable, so can I be sure of what fonts will be available, and will I be able to locate them? 3. I'm not really concerned about what font it is, just that it's large and readable. If there are other options than what I've explored here, then I would be open to those too.