Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imagick.setfont(3) [php man page]

IMAGICK.SETFONT(3)							 1							IMAGICK.SETFONT(3)

Imagick::setFont - Sets font

SYNOPSIS
bool Imagick::setFont (string $font) DESCRIPTION
Sets object's font property. This method can be used for example to set font for caption: pseudo-format. The font needs to be configured in ImageMagick configuration or a file by the name of $font must exist. This method should not be confused with ImagickDraw.setFont(3) which sets the font for a specific ImagickDraw object. This method is available if Imagick has been compiled against ImageMagick version 6.3.7 or newer. PARAMETERS
o $font - Font name or a filename RETURN VALUES
Returns TRUE on success. SEE ALSO
Imagick.getFont(3), ImagickDraw.setFont(3), ImagickDraw.getFont(3). EXAMPLES
Example #1 A Imagick.setFont(3) 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(100, 100, "caption:Hello"); /* Do something with the image */ ?> PHP Documentation Group IMAGICK.SETFONT(3)

Check Out this Related Man Page

IMAGICK.SETITERATORINDEX(3)						 1					       IMAGICK.SETITERATORINDEX(3)

Imagick::setIteratorIndex - Set the iterator position

SYNOPSIS
bool Imagick::setIteratorIndex (int $index) DESCRIPTION
Set the iterator to the position in the image list specified with the index parameter. This method is available if Imagick has been com- piled against ImageMagick version 6.2.9 or newer. PARAMETERS
o $index - The position to set the iterator to RETURN VALUES
Returns TRUE on success. EXAMPLES
Example #1 Using Imagick.setIteratorIndex(3): Create images, set and get the iterator index <?php $im = new Imagick(); $im->newImage(100, 100, new ImagickPixel("red")); $im->newImage(100, 100, new ImagickPixel("green")); $im->newImage(100, 100, new ImagickPixel("blue")); $im->setIteratorIndex(1); echo $im->getIteratorIndex(); ?> SEE ALSO
Imagick.getIteratorIndex(3), Imagick.getImageIndex(3), Imagick.setImageIndex(3). PHP Documentation Group IMAGICK.SETITERATORINDEX(3)
Man Page