php8.5
Home/ Manual/ imagick / imagickdraw/ ImagickDraw::setTextEncoding

ImagickDraw::setTextEncoding

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Specifies the text code set

Description

ImagickDraw::setTextEncoding(string $encoding): bool

Func

Specifies the code set to use for text annotations. The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text annotation using Unicode may require fonts designed to support Unicode.

Parameters

encoding

the encoding name

Return Values

Void

Source: reference/imagick/imagickdraw/settextencoding.xml · from the official PHP manual (php/doc-en)