Re: How to print nice looking text on an image?
| From: | Jason Wong | Date: | Wed, 19 Nov 2003 06:38:11 +0000 |
| Subject: | Re: How to print nice looking text on an image? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170244@lists.php.net to get a copy of this message | ||
On Wednesday 19 November 2003 06:32, Kevin Stone wrote:
> I am producing a script that writes text onto a JPEG image to create
> custom printable gift certificates for an online store. The basics of
> the scripts are straight forward. However I found that the
> imagestring() function produces absolutely horrible looking pixelized
> text and on these gift certificates looks are important. I attempted to
> employ the imagepstext() family of functions but they do not appear to
> be installed on this account (it's a shared server), I'm getting "call
> to undefined function" errors.
>
> So my question is; Is there any other way to produce good looking
> anti-aliased text on an image? I'd appreciate any information, classes
> and links to guides you can point me to.
Using imagettftext() would be the easiest. As the lastest versions of PHP are
bundled with GD *and* have native support for TrueType fonts it really isn't
too difficult for your host to recompile PHP to enable such support.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Lots of folks confuse bad management with destiny.
-- Frank Hubbard
*/