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:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 12:42 PM
To: [EMAIL PROTECTED]
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php