Szukałem czegoś do wyświetlania wykresów, wybór padł na biblioteke libchart. Nito instalacja prosta a jednak są problemy:
Kod
Warning: imageftbbox() [function.imageftbbox]: Could not read font in /.../libchart/classes/view/text/Text.php on line 67
Warning: imagettftext() [function.imagettftext]: Could not read font in /.../libchart/classes/view/text/Text.php on line 90
Warning: imagettftext() [function.imagettftext]: Could not read font in /.../libchart/classes/view/text/Text.php on line 90
itd.
Na wszelki ustawilem na wszystkie pliki i foldery chmod 777 i nic.
Fonty są umieszczone w libchart/fonts(DejaVuSansCondensed.ttf i DejaVuSansCondensed-Bold.ttf)
Z tego co zauważyłem skrypt znajduje fonty, bo jak usune w/w pliki to wyświetla komunikat:
Kod
Warning: imageftbbox() [function.imageftbbox]: Could not find/open font in ...
Warning: imagettftext() [function.imagettftext]: Could not find/open font in ...
Warning: imagettftext() [function.imagettftext]: Could not find/open font in ...
Z phpinfo():
Kod
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
Przeszukałem cały internet próbowałem z putenv('GDFONTPATH=' . realpath('.')), putenv('GD_FONTPATH=' . realpath('.') i nic.
Jak szperałem w skrypcie (w Text.php) to pojawiał się ten drugi komunikat.
POMOCY !
Pozdrawiam.