Checking for TTF in a script

From: Date: Tue, 16 Apr 2002 18:42:01 +0000
Subject: Checking for TTF in a script
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-93234@lists.php.net to get a copy of this message
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

« previous php.general (#93234) next »