Grazie marchetto
sul tuo link sono poi andato a vedere la funzione con l'esempio
Codice PHP:
<?php
$font = imageloadfont('bmreceipt.gdf');
/* I use .gdf as its extension to represents "GD Fonts" */
/* But, if your server not allow .gdf, you can change it*/
/* to any extension .jpg, .bmp, .txt, .bmf, .etc */
$fontWidth = imagefontwidth($font);
$fontHeight = imagefontheight($font);
$text = 'Jackdaws Love My Big Sphinx Of Quartz 0123456789';
$im = imagecreate(strlen($text) * $fontWidth, $fontHeight);
$bgColor = imagecolorallocate($im, 255, 255, 255);
$fgColor = imagecolorallocate($im, 0, 0, 255);
imagestring($im, $font, 0, 0, $text, $fgColor);
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>
ma che estensione sono le.gdf?
perchè dice che posso inserire estensioni .jpg, .bmp, .txt .... e quali solo anche le altre estensioni?
Scusate ma ho bisogno di delucidazioni