Skip to content

gdImageStringFT()#

Syntax
gdImageStringFT( im, brect var, fg, fontname, ptsize, angle, x, y, string )

Returns#

Returns an empty string on success, or an error message string on failure.

Parameters#

Parameter Description
im The image resource.
brect [output] Array of 8 integers defining the bounding rectangle of the rendered string.
fg The foreground color index.
fontname The path to the TrueType font file.
ptsize The font point size.
angle The rotation angle in radians.
x The x-coordinate of the lower-left corner of the first character.
y The y-coordinate of the lower-left corner of the first character.
string The string to render.