imagepsfreefont
<<<
imagepsloadfont imagepsslantfont
>>>

7.40 Images
7 Index des fonctions
 Manuel PHP

. Introduction
. Pré-requis
. Installation
. Configuration à l'exécution
. Types de ressources
. Constantes prédefinies
. Exemples
. exif_imagetype
. exif_read_data
. exif_thumbnail
. gd_info
. getimagesize
. image_type_to_mime_type
. image2wbmp
. imagealphablending
. imageantialias
. imagearc
. imagechar
. imagecharup
. imagecolorallocate
. imagecolorallocatealpha
. imagecolorat
. imagecolorclosest
. imagecolorclosestalpha
. imagecolorclosesthwb
. imagecolordeallocate
. imagecolorexact
. imagecolorexactalpha
. imagecolormatch
. imagecolorresolve
. imagecolorresolvealpha
. imagecolorset
. imagecolorsforindex
. imagecolorstotal
. imagecolortransparent
. imagecopy
. imagecopymerge
. imagecopymergegray
. imagecopyresampled
. imagecopyresized
. imagecreate
. imagecreatefromgd
. imagecreatefromgd2
. imagecreatefromgd2part
. imagecreatefromgif
. imagecreatefromjpeg
. imagecreatefrompng
. imagecreatefromstring
. imagecreatefromwbmp
. imagecreatefromxbm
. imagecreatefromxpm
. imagecreatetruecolor
. imagedashedline
. imagedestroy
. imageellipse
. imagefill
. imagefilledarc
. imagefilledellipse
. imagefilledpolygon
. imagefilledrectangle
. imagefilltoborder
. imagefontheight
. imagefontwidth
. imageftbbox
. imagefttext
. imagegammacorrect
. imagegd
. imagegd2
. imagegif
. imageinterlace
. imageistruecolor
. imagejpeg
. imageline
. imageloadfont
. imagepalettecopy
. imagepng
. imagepolygon
. imagepsbbox
. imagepscopyfont
. imagepsencodefont
. imagepsextendfont
. imagepsfreefont
->imagepsloadfont
. imagepsslantfont
. imagepstext
. imagerectangle
. imagerotate
. imagesavealpha
. imagesetbrush
. imagesetpixel
. imagesetstyle
. imagesetthickness
. imagesettile
. imagestring
. imagestringup
. imagesx
. imagesy
. imagetruecolortopalette
. imagettfbbox
. imagettftext
. imagetypes
. imagewbmp
. iptcembed
. iptcparse
. jpeg2wbmp
. png2wbmp
. read_exif_data

7.40.83 imagepsloadfont()Charge une police PostScript Type 1 depuis un fichier

[ Exemples avec imagepsloadfont ]   PHP 3>= 3.0.9, PHP 4

int  imagepsloadfont ( string   filename )

En cas de succès, imagepsloadfont retourne un index de police, qui pourra être utilisé pour des opérations ultérieures. Sinon, imagepsloadfont retourne FALSE et affiche un message décrivant ce qui est arrivé.


<?php
header
("Content-type: image/jpeg");
$im = imagecreate (350, 45);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
$font = imagepsloadfont ("bchbi.pfb"); // ou bien situez un de vos fichiers .pfb
imagepstext ($im, "Test ... Ca marche!", $font, 32, $white, $black, 32, 32);
imagepsfreefont ($font);
imagejpeg ($im, "", 100); //Meilleure qualité...
imagedestroy ($im);
?>

Voir aussi imagepsfreefont .

<< imagepsloadfont >>
imagepsfreefont Images imagepsslantfont