ImageFontWidth

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

説明

int imagefontwidth(int font);

font中の文字の幅をピクセル単位で返します。

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