GmagickDraw::settextencoding

(PECL gmagick >= Unknown)

GmagickDraw::settextencodingSpecifies the text code set

Descrizione

public GmagickDraw::settextencoding(string $encoding): GmagickDraw

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.

Elenco dei parametri

encoding

Character string specifying text encoding

Valori restituiti

The GmagickDraw object.

add a note add a note

User Contributed Notes 1 note

up
0
Anonymous
6 years ago
$im = new Gmagick($f);
$draw = new GmagickDraw();
                    $draw->setFontSize(64);
                    $draw->settextencoding("UTF-8");
                    $draw->setFillColor(new GmagickPixel('#FFFFFF'));
                    $draw->annotate(30, $wh1[1]-50, $waster);
                    $im->drawImage($draw);
To Top