RE: Writing text into images, and setting text size [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dave,

Thanks for the compliment! :)

About TTF support in shared hosting... every decent hosting option should support it. Though it is kind of an optional feature, it is as common as GD itself (at least 9 out of 10 CAPTCHA scripts will rely on it). So if TTF support is not installed, the hosting provider should install it. How they should install it is up to them, and varies from system to system.
In other words, if TTF support is not installed and your hosting provider is not willing to install it (or wants to charge you for that), either they don't have a clue, or they want to take advantage of your needs... in both cases the service sucks. We use CentOS boxes with DirectAdmin, and installing GD with TTF support is part of the standard setup.
You cannot rely on ImageMagick, or the PHP ImageMagick extension being installed, though some hosting companies support it. But GD with TTF, Freetype, JPG and PNG support is pretty standard, like mbstring, cURL, or the sockets extension.

Best Regards,

Rob


Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695
Email: info@xxxxxxxxxxxxx  | MSN Chat: best@xxxxxxxxxxxxx  |  SKYPE: bestplace |  Web: http://www.bestplace.biz | Web: http://www.seo-diy.com

> -----Original Message-----
> From: Dave M G [mailto:martin@xxxxxxxxxxxxx]
> Sent: Wednesday, December 19, 2007 7:49 AM
> To: Andrés Robinet
> Cc: 'PHP List'
> Subject: Re:  Writing text into images, and setting text size
> [SOLVED]
> 
> Rob,
> 
> Thank you for helping me through this.
> 
> > '--enable-gd-native-ttf'
> > '--with-ttf'
> 
> This was the key information. I thought that having the GD modules
> installed meant I had TTF support. But after I saw that, I realized
> that
> TTF support was a separate module within the GD library.
> 
> On my home Ubuntu environment, placing TTF support simply meant
> installing the right package from the repository (which I found in
> Synaptic by searching for "PHP TTF").
> 
> I'm hoping that TTF support is reasonably common on web hosting
> services, since I'm aspiring for my code to be portable.
> 
> In any case, you've helped me get to the point that I needed to get to,
> so I am very grateful for your support.
> 
> Thanks.
> 
> --
> Dave M G
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux