|
użytkowników online: 17
|
OPINIE UŻYTKOWNIKÓW
|
Uważam, że serwis jest najlepszy na świecie. Wykonany rzetelnie, a wszystkie skrypty sa dopracowane. Zamieszczony materiał godny mistrza. Jestem programistą od wielu lat i bez tego serwisu nie istnieje. Upraszacza życie każdemu programiście. Imponujący jest fakt, że do twórcy serwisu zawsze można się zwrócić z prośbą o pomoc i uzyskuje się ją w bardzo krótkim czasie. Najważniejsze w tym wszystkim jest to, że można korzystać z witryny za symboliczną opłatą.
Marcin Kowalski Multinet Polska
|
|
PODRĘCZNIK PHP 5.x, 4.x, 3.x - częściowo spolszczony / źródło: www.php.net
[Spis]
[A]
[B]
[C]
[D]
[E]
[F]
[G]
[H]
[I]
[J]
[K]
[L]
[M]
[N]
[O]
[P]
[Q]
[R]
[S]
[T]
[U]
[V]
[X]
[W]
[Z]
imagepsloadfont (PHP 3 >= 3.0.9, PHP 4, PHP 5) imagepsloadfont -- Load a PostScript Type 1 font from file Descriptionint imagepsloadfont ( string filename )
In the case everything went right, a valid font index will be
returned and can be used for further purposes. Otherwise the
function returns FALSE and prints a message describing what went
wrong, which you cannot read directly, while the output type is image.
Przykład 1. imagepsloadfont() example |
<?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"); imagepstext($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32);
imagepsfreefont($font);
imagejpeg($im, "", 100); imagedestroy($im);
?>
|
|
Notatka: Ta funkcja jest dostępna tylko jeśli
PHP zostało skompilowane z dyrektywą --enable-t1lib.
See also imagepsfreefont().
User Contributed Notesseymour 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.
|