Difference between revisions of "FontBase:getBounds"
From GiderosMobile
Line 8: | Line 8: | ||
(number), (number), (number), (number) = FontBase:getBounds(text) | (number), (number), (number), (number) = FontBase:getBounds(text) | ||
</source> | </source> | ||
− | '''text | + | '''text''': (string) ''''''<br/> |
'''Returns''' (number) x coordinate of the bound<br/> | '''Returns''' (number) x coordinate of the bound<br/> | ||
'''Returns''' (number) y coordinate of the bound<br/> | '''Returns''' (number) y coordinate of the bound<br/> | ||
'''Returns''' (number) width of the bound<br/> | '''Returns''' (number) width of the bound<br/> | ||
'''Returns''' (number) height of the bound<br/> | '''Returns''' (number) height of the bound<br/> |
Revision as of 10:14, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the tight bounding rectangle of the characters in the string specified by `text`.
(number), (number), (number), (number) = FontBase:getBounds(text)
'text: (string) '
Returns (number) x coordinate of the bound
Returns (number) y coordinate of the bound
Returns (number) width of the bound
Returns (number) height of the bound