Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/12/2007, 01:11
Avatar de lado2mx
lado2mx
Colaborador
 
Fecha de Ingreso: agosto-2001
Ubicación: Veracruz
Mensajes: 3.720
Antigüedad: 22 años, 8 meses
Puntos: 9
Re: embeber font on the fly

Si Oxígeno, creo que ahora entendí la pregunta, a ver deja te doy un buen norte http://mx2.php.net/manual/es/function.imagettftext.php
Código PHP:
  <?php
// Establecer el tipo de contenido
header("Content-type: image/png");

// Crear la imagen
$im imagecreatetruecolor(40030);

// Crear algunos colores
$blanco imagecolorallocate($im255255255);
$gris   imagecolorallocate($im128128128);
$negro  imagecolorallocate($im000);
imagefilledrectangle($im0039929$blanco);

// El texto a pintar
$texto 'Probando...';
// Reemplaze la ruta con su propia ruta a la fuente
$fuente 'arial.ttf';

// Agregar una sombra al texto
imagettftext($im2001121$gris$fuente$texto);

// Agregar el texto
imagettftext($im2001020$negro$fuente$texto);

// Usar imagepng() resulta en texto más claro, en comparación con imagejpeg()
imagepng($im);
imagedestroy($im);
?>