FontBase:getBounds: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the tight bounding rectangle of the characters in the string specified by `text`.<br />..." |
No edit summary |
||
| Line 6: | Line 6: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
(number) (number) (number) (number) | (number), (number), (number), (number) = FontBase:getBounds(text) | ||
</source> | </source> | ||
'''text:''' (string) ''''''<br/> | '''text:''' (string) ''''''<br/> | ||
Revision as of 09:11, 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