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