imagefontheight

Get font height

&reftitle.description; `int` `imagefontheight` ``GdFont``int```font`

Returns the pixel height of a character in the specified font.

&reftitle.parameters;

&gd.font.description;
&reftitle.returnvalues;

Returns the pixel height of the font.

&reftitle.changelog;

&Version; | &Description;
&gd.changelog.gdfont-instance;

&reftitle.examples;

### Using `imagefontheight` on built-in fonts

    <?php
    echo 'Font height: ' . imagefontheight(4);
    ?>

&example.outputs.similar;

    Font height: 16

### Using `imagefontheight` together with `imageloadfont`

    <?php
    // Load a .gdf font
    $font = imageloadfont('anonymous.gdf');

    echo 'Font height: ' . imagefontheight($font);
    ?>

&example.outputs.similar;

    Font height: 43

&reftitle.seealso;

- `imagefontwidth`
- `imageloadfont`