length. Getting inscription's length in pixels

^image.length[inscription text]

The method calculates inscription's full length in pixels.

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


As a result, full length of the inscription "128500" will be calculated in pixels, paying attention to spaces.


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