The Imagick class
PHP Manual

Imagick::setFont

(PECL imagick 2.1.0)

Imagick::setFontSets the image bias for any method that convolves an image

Opis

bool Imagick::setFont ( string $font )
Ostrzeżenie

Ta funkcja jest obecnie nieudokumentowana, dostępna jest jedynie lista jej argumentów.

Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Sets object's font property. This method can be used for example to set font for caption: pseudo-format. This method is available if Imagick is compile against at least version 6.3.6-4 of ImageMagick.

Parametry

font

Font name or a filename

Zwracane wartości

Zwraca TRUE w przypadku sukcesu.

Przykłady

Przykład #1 A Imagick::setFont() example

Example of using Imagick::setFont

<?php
/* Create new imagick object */
$im = new Imagick();

/* Set the font for the object */
$im->setFont("example.ttf");

/* Create new caption */
$im->newPseudoImage(100100"caption:Hello");

/* Do something with the image */
?>


The Imagick class
PHP Manual