RE: [PHP] Checking for TTF in a script

From: Date: Tue, 16 Apr 2002 20:29:16 +0000
Subject: RE: [PHP] Checking for TTF in a script
Groups: php.general 
Request: Send a blank email to php-general+get-93251@lists.php.net to get a copy of this message
Use this: if (function_exists("imagettftext")) { //TTF Exists } else { //TTF Doesn't exist } Matthew Walker Senior Software Engineer ePliant Marketing -----Original Message----- From: Jackson Miller [mailto:anything@jaxn.org] Sent: Tuesday, April 16, 2002 12:42 PM To: php-general@lists.php.net Subject: [PHP] Checking for TTF in a script I am working on am application that is using the GD library to create the navigation menu. I would like to check for TTF support in a script before I declare the image size. The reason for this is so I can create width based on the length of the string if TTF is enabled and take a guess if TTF is not enabled. I also want to center the text, and I can only do this with TTF. So my question, assuming there is no problems with my premise, how can I safely check to see if TTF is supported from within a script? -Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.345 / Virus Database: 193 - Release Date: 4/9/2002

« previous php.general (#93251) next »