Home > PHP > Function > GD > imagefontheight()

imagefontheight()

imagefontheight - Get font height

Syntax

int imagefontheight (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 height of a character in the specified font.

Version

PHP 4, 5

Return value

Returns the height of the pixel.