PYTHON Imagick::setFont

(0)
Python replacement for PHP's Imagick::setFont [ edit ]



Do you know a Python replacement for PHP's Imagick::setFont ? Write it!

PHP Imagick::setFont

PHP original manual for Imagick::setFont [ show | php.net ]

Imagick::setFont

(PECL imagick 2.1.0)

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

Description

bool Imagick::setFont ( string $font )
Warning

This function is currently not documented; only its argument list is available.

Warning

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

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.

Parameters

font

Font name or a filename

Return Values

Returns TRUE on success.

Examples

Example #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 */
?>