Код: Выделить всё
$this->fontFile=dirname(__FILE__).'/Duality.ttf';
Код: Выделить всё
imagettfbbox(): Problem loading glyph
Код: Выделить всё
$this->fontFile=dirname(__FILE__).DIRECTORY_SEPARATOR.'Duality.ttf';
Скажите лз кто сталкивался
Код: Выделить всё
$this->fontFile=dirname(__FILE__).'/Duality.ttf';
Код: Выделить всё
imagettfbbox(): Problem loading glyph
Код: Выделить всё
$this->fontFile=dirname(__FILE__).DIRECTORY_SEPARATOR.'Duality.ttf';
Your php build is probably not compiled with freetype2. Check the config options of your php build by running phpinfo() withing a php script.
If there is a problem with the path/filename you'll get a "Invalid font filename" warning.
"Problem loading glyph" means that there is an actual problem with the file's format, i.e. FT_Load_Glyph of the gd library wasn't able to interpret the font definition.