Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

imagepsloadfont

(PHP 3 >= 3.0.9, PHP 4, PHP 5)

imagepsloadfont -- Load a PostScript Type 1 font from file

Описание

resource imagepsloadfont ( string filename )

Load a PostScript Type 1 font from the given filename.

Список параметров

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.

Примеры

Пример 1. imagepsloadfont() example

<?php
header
("Content-type: image/png");
$im = imagecreatetruecolor(350, 45);
$black = imagecolorallocate($im, 0, 0, 0);
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 0, 0, 349, 44, $white);
$font = imagepsloadfont("bchbi.pfb"); // or locate your .pfb files on your machine
imagepstext($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32);
imagepsfreefont($font);
imagepng($im);
imagedestroy($im);
?>

Примечания

Замечание: Эта функция доступна только в том случае, если PHP был скомпилирован с опцией --enable-t1lib.

Смотрите также

imagepsfreefont()



add a note add a note User Contributed Notes
imagepsloadfont
seymour at itsyourdomain dot com
11-Feb-2004 05: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: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571