Home > PHP > Function > GD > imagefontwidth()

imagefontwidth()

imagefontwidth - Get font width

Syntax

int imagefontwidth (int $font)

Arguments

  • font - Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont().

Description

Returns the pixel width of a character in font.

Version

PHP 4, 5

Return value

Returns the width of the pixel