imagefontheight
imagefontheight
Get font height
int **imagefontheight** $font
Returns the pixel height of a character in the specified font.
Returns the pixel height of the font.
Voorbeeld: Using on built-in fonts
<?php
echo 'Font height: ' . imagefontheight(4);
?>
Font height: 16
**Voorbeeld: Using together with **
<?php
// Load a .gdf font
$font = imageloadfont('anonymous.gdf');
echo 'Font height: ' . imagefontheight($font);
?>
Font height: 43
imagefontwidth``imageloadfont