Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Image
Image.Font

Method Image.Font()->text_extents()


Method text_extents

array(int) text_extents(string text, string ... more_text_lines)

Description

Calculate extents of a text-image, that would be created by calling write with the same arguments. One or more lines of text may be provided.

Returns
Array
int width
int height

See also

write , height , baseline