<?php
int imagefontheight ( GdFont|int $font )
where,
$font = The font number
?>
<?php
echo 'PHP VERSION: ' . PHP_VERSION . '<br><br>';
$arrfh = [ "font 1" => 1, "font 2" => 2,
"font 3" => 3, "font 4" => 4, "font 5" => 5 ];
foreach($arrfh as $f => $fh)
{
echo $f . ' => ' . imagefontheight($fh) . '<br>';
}
?>
<?php
echo 'PHP VERSION: ' . PHP_VERSION . '<br><br>';
// $lang = 'pt';
$lang = 'en';
$var = getcwd();
$gdf_font_name = $var . "/gdf/";
$arqs = glob($gdf_font_name .'*{.gdf,.GDF}', GLOB_BRACE);
foreach($arqs as $v)
{
// echo basename($v) . '<br>';
$gdf_fnt = imageloadfont($v);
$gdf_fnt_height = imagefontheight ($gdf_fnt);
$pt = $v . "<br>Altura da Fonte: " . $gdf_fnt_height . "px<br><br>";
$en = $v . "<br>Font Height " . $gdf_fnt_height . "px<br><br>";
echo $$lang;
}
?>