PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imagepsslantfont> <imagepsfreefont
Last updated: Fri, 11 Apr 2008

view this page in

imagepsloadfont

(PHP 4, PHP 5)

imagepsloadfont — Cargar una fuente PostScript Tipo 1 desde un archivo

Descripción

resource imagepsloadfont ( string $nombre_archivo )

Carga una fuente PostScript Type 1 desde el nombre_archivo dado.

Lista de parámetros

nombre_archivo

Valores retornados

En caso de que todo se efectúe correctamente, un índice de fuente válido será devuelto y puede ser usado para propósitos posteriores. De lo contrario la función devuelve FALSE.

Ejemplos

Example #1 Ejemplo de imagepsloadfont()

<?php
header
("Content-type: image/png");
$im imagecreatetruecolor(35045);
$negro imagecolorallocate($im000);
$blanco imagecolorallocate($im255255255);
imagefilledrectangle($im0034944$blanco);
$fuente imagepsloadfont("bchbi.pfb"); // o ubique sus archivos .pfb en su máquina
imagepstext($im"Probando... ¡Funcionó!"$fuente32$blanco$negro3232);
imagepsfreefont($fuente);
imagepng($im);
imagedestroy($im);
?>

Notes

Note: Esta funcion esta disponible solamente si PHP se ha compilado usando la opcion --with-t1lib[=DIR].

Ver también



add a note add a note User Contributed Notes
imagepsloadfont
seymour at itsyourdomain dot com
12-Feb-2004 02:45
I had to use a full path to the font file or else I received errors from t1lib. Using just a filename, I received error 14. Using ./filename I received error 2.

imagepsslantfont> <imagepsfreefont
Last updated: Fri, 11 Apr 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites