FontBase:getBounds: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/FontBase|FontBase]]<br/>
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
Returns the tight bounding rectangle of the characters in the string specified by [[Special:MyLanguage/text|text]].<br />
Returns the tight bounding rectangle of the characters in the string specified by `text`.<br />
<br /></translate>
<br /></translate>
<source lang="lua">
<source lang="lua">

Revision as of 08:27, 24 August 2018

Available since: Gideros 2011.6
Class: FontBase

Description


Returns the tight bounding rectangle of the characters in the string specified by `text`.

(number), (number), (number), (number) = FontBase:getBounds(text)

Parameters

text: (string)

Return values

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