GD2 and PHP
| From: | Stephen Edmonds | Date: | Mon, 28 Oct 2002 16:00:50 +0000 |
| Subject: | GD2 and PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16592@lists.php.net to get a copy of this message | ||
Yesterday I decided to switch my GD library from gd.dll to gd2.dll... big
mistake
Now, when I try to create text using imageTTFtext( ), I get the error
message of
Warning: Could not find/open font in
C:\server\scryt_pages\members\interface\buttons\base.php on line 53
I've tried the suggestions I found at PHP beginner, but still no luck. Any
ideas?
Ty
Stephen
Tried code:
imageTTFtext( $Button_Image, $FontSize, 0, $X_Coord, $Y_Coord,
$Colour_Button_Text, "./BERNHC", $Button_Text );
and
imageTTFtext( $Button_Image, $FontSize, 0, $X_Coord, $Y_Coord,
$Colour_Button_Text, "./BERNHC.ttf", $Button_Text );
and
imageTTFtext( $Button_Image, $FontSize, 0, $X_Coord, $Y_Coord,
$Colour_Button_Text, "C:\server\PHP\fonts\BERNHC.ttf", $Button_Text );
The font is located in C:\server\PHP\fonts, and
C:\server\scryt_pages\members\interface\buttons AND ALSO
C:\server\scryt_pages\members\interface
Bit silly really :-\