ImagickDraw::setFont

(PECL imagick 2.0.0)

ImagickDraw::setFontSets the fully-specified font to use when annotating with text

Description

bool ImagickDraw::setFont ( string $font_name )
Warning

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

Sets the fully-specified font to use when annotating with text.

Parameters

font_name

Return Values

Returns TRUE on success.

add a note add a note

User Contributed Notes 2 notes

up
2
Anonymous
3 years ago
To get a list of fonts that ImageMagick knows about, enter this from a cmd shell:
convert -list font
up
1
zombiebovine at gmail dot com
5 years ago
The only acceptable parameters I've been able to use are the location, relative to site root, of a font file.

e.g,
$draw->setFont("fonts/arial.ttf");
To Top