Código PHP:
<?
// Set the content-type
header('Content-type: image/gif');
// Create the image
$im = imagecreatefromgif("thumbs_gif/ico_mensualidad.gif");
// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'OldSansBlack.ttf';
// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $white, $font, $text);
// Add the text
// Using imagepng() results in clearer text compared with imagejpeg()
ImageGif($im,'thumbs_gif/PRUEBA.gif');
ImageDestroy($im);
?>
Utilizo imagettftext para poder cargar la fuente que quiera...