GDのサポー状況を表示する
gd_info();
[結果]
GD Version] ==>> bundled (2.0.28 compatible) [FreeType Support] ==>> OK [FreeType Linkage] ==>> with freetype [T1Lib Support] ==>> No Support [GIF Read Support] ==>> OK [GIF Create Support] ==>> OK [JPG Support] ==>> OK [PNG Support] ==>> OK [WBMP Support] ==>> OK [XBM Support] ==>> OK [JIS-mapped Japanese Font Support] ==>> No Support
*JIS-mapped Japanese Font Supportが
No Supportの場合は、
mb_convert_encoding($text,"UTF-8","auto");でutf8にする必要がある。
*FreeType SupportがOKでなければフリータイプフォントが使えない。
グラフ作成のときなどに、項目名を表示したりする。