5
Recibo este error Could not find/open font
Al intentar imagettftext()
en PHP."No se pudo encontrar/abrir la fuente" cuando se usa PHP gd
El archivo de fuente está allí. ¿Cuál es el problema?
Recibo este error Could not find/open font
Al intentar imagettftext()
en PHP."No se pudo encontrar/abrir la fuente" cuando se usa PHP gd
El archivo de fuente está allí. ¿Cuál es el problema?
he encontrado la respuesta en bytes http://bytes.com/topic/php/answers/4833-gd-could-not-find-open-font-font-problem
Ajuste del GDFONTPATH puede ayudar
$fontpath = realpath('.'); //replace . with a different directory if needed
putenv('GDFONTPATH='.$fontpath);
$font = 't.otf';
...
$box = imagettfbbox($size, 0, $font, $text);
estado luchando con esto durante demasiado tiempo. Dios mío, gracias por esto. – rncrtr