Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/04/2003, 23:08
Avatar de sdf23
sdf23
 
Fecha de Ingreso: diciembre-2002
Mensajes: 297
Antigüedad: 21 años, 4 meses
Puntos: 0
buscando un rato encontre esto:
Código PHP:
<?
  Header
("Content-type: image/gif");
  if(!isset(
$s)) $s=11;
  
$size imagettfbbox($s,0,"/fonts/CALVIN.TTF",$text); 
  
$dx abs($size[2]-$size[0]);
  
$dy abs($size[5]-$size[3]);
  
$xpad=9;
  
$ypad=9;
  
$im imagecreate($dx+$xpad,$dy+$ypad);
  
$blue ImageColorAllocate($im0x2c,0x6D,0xAF);
  
$black ImageColorAllocate($im0,0,0);
  
$white ImageColorAllocate($im255,255,255);
  
ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black);
  
ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white);
  
ImageTTFText($im$s0, (int)($xpad/2)+1$dy+(int)($ypad/2), $black"/fonts/CALVIN.TTF"$text);
  
ImageTTFText($im$s0, (int)($xpad/2), $dy+(int)($ypad/2)-1$white"/fonts/CLAVIN.TTF"$text);
  
ImageGif($im);
  
ImageDestroy($im);
?>
y la llamas
s es el tamaño de letra
<IMG SRC="button.php?s=36&text=$_GET[text]">

ojala te sirva