Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ImagickDraw::setTextDecorationImagickDraw::setTextInterlineSpacing>
^ImagickDrawLast updated: Mon, 26 Oct 2026

ImagickDraw::setTextEncoding

(PECL imagick 2, PECL imagick 3)

ImagickDraw::setTextEncoding — Specifies the text code set

Description

public function ImagickDraw::setTextEncoding(string $encoding): bool
Warning

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

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

No value is returned.


<ImagickDraw::setTextDecorationImagickDraw::setTextInterlineSpacing>
^ImagickDrawLast updated: Mon, 26 Oct 2026