Forum Moderators: coopster
Warning: imagettftext() [function.imagettftext]: Could not find/open font in ... on line 71
PNG IHDRxD70 IDATx콷n7b⨙1FLxɦJ}Lw7dhBC (LOng Text of alien characters here) I always get this error message even though Im sure that i specified the correct path of the font
Heres my code:
$fonttype = "../image/fonts/GOTHICB.TTF";imagettftext($imagehere, 20, 0, 5, 125, $bluetext, $fonttype, $texthere);
Still an error even if I change the path like this
$fonttype = "http://www.example.com/image/fonts/GOTHICB.TTF"; [edited by: Gian04 at 2:36 pm (utc) on June 22, 2007]
So, specify the font like:
$fonttype = $_SERVER['DOCUMENT_ROOT']."/image/fonts/GOTHICB.TTF";
Also, take a look at the manual page [php.net] with it's caveats for specifying font path.