Ver Mensaje Individual
  #8 (permalink)  
Antiguo 27/02/2009, 14:29
Avatar de Capimaster
Capimaster
 
Fecha de Ingreso: agosto-2004
Mensajes: 494
Antigüedad: 19 años, 9 meses
Puntos: 2
Respuesta: ayuda con gd y php para crear imagen...

aa ok... oye una pregunta con wordwrap puedo hacer que me corte.... hasta los 20 caracteres

$nuevo_texto = wordwrap($texto, 20, "\n");

y luego volver a hacer wordwrap y comenzar desde 20 caracteres... en delante...

Código PHP:
// Path to our ttf font file
$font_file 'include/segoepr.ttf';
$texto "XV de Mariela Villarruel Vidrio";
$nuevo_texto wordwrap($texto20"\n");


// Draw the text 'PHP Manual' using font size 13
imagefttext($im11017150$black$font_file$nuevo_texto); 
__________________
http://www.elcapitolio.com.mx - Ocotlán, Jalisco, México