ImageFontWidth

ImageFontWidth -- フォントの幅の取得

説明

int imagefontwidth(int font);

フォントfontの文字の幅をピクセル単位で返します。

imagefontheight()および imageloadfont()も参考にしてください。