(PHP 4, PHP 5)
imagefontheight — Get font height
Returns the pixel height of a character in the specified font.
Returns the height of the pixel.
Example #1 Using imagefontheight() on built-in fonts
<?php
echo 'Font height: ' . imagefontheight(4);
?>
위 예제의 출력 예시:
Font height: 16
Example #2 Using imagefontheight() together with imageloadfont()
<?php
// Load a .gdf font
$font = imageloadfont('anonymous.gdf');
echo 'Font height: ' . imagefontheight($font);
?>
위 예제의 출력 예시:
Font height: 43