<?php
header('Content-type: image/png');
$im = imagecreatetruecolor(600, 400);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 599, 399, $white);
$text = 'Php Ouate de phoque(none)';
$text1 = 'Php Ouate de phoque(<i></i>)';
$text2 = 'Php Ouate de phoque(<b></b>)';
$font = 'arial.ttf';
$font2 = 'ariali.ttf';
$font3 = 'arialbd.ttf';
imagettftext($im, 20, 0, 15, 25, $black, $font, $text);
imagettftext($im, 20, 0, 15, 65, $black, $font2, $text1);
imagettftext($im, 20, 0, 15, 105, $black, $font3, $text2);
imagepng($im);
imagedestroy($im);
?>
(Dans le cas présent, les fichier arial.ttf, ariali.ttf et arialbd.ttf doivent être dans le même dossier que ton script)
A toi de l'adapter