text. Making an inscription on an image

^image.text(x;y)[inscription text]

The method outputs specified text according to the given coordinates (X;Y) using font file loaded by method
font in advance.

Example
$square[^image::create(100;100;0x00FF00)]
^square.
font[0123456789;digits.gif](0)

^square.text(5;5)[128500]
$
response:body[^square.gif[]]

Browser will display a green square with "128500" inscribed on it, left top point of the text located at (5;5).


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 02.03.2011