Difference between revisions of "FontBase:getBounds"

From GiderosMobile
(----)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2011.6<br/>
<languages />
+
'''Class:''' [[FontBase]]<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/FontBase|FontBase]]<br/>
+
=== Description ===
=== <translate>Description</translate> ===
+
Returns the tight bounding rectangle of the characters in the string specified by ''text''.
<translate><br />
+
 
Returns the tight bounding rectangle of the characters in the string specified by ''text''.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number), (number), (number) = FontBase:getBounds(text)
 
(number), (number), (number), (number) = FontBase:getBounds(text)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''text''': (string) <translate></translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''text''': (string) <br/>
'''<translate>Returns</translate>''' (number) <translate>x coordinate of the bound</translate><br/>
+
 
'''<translate>Returns</translate>''' (number) <translate>y coordinate of the bound</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>width of the bound</translate><br/>
+
'''Returns''' (number) x coordinate of the bound <br/>
'''<translate>Returns</translate>''' (number) <translate>height of the bound</translate><br/>
+
'''Returns''' (number) y coordinate of the bound <br/>
 +
'''Returns''' (number) width of the bound <br/>
 +
'''Returns''' (number) height of the bound <br/>
 +
 
 +
----
 +
{{Special:PrefixIndex/FontBase:}}
 +
<br/>
 +
 
 +
{{Special:PrefixIndex/FontBase.TLF}}
 +
<br/>

Revision as of 21:23, 2 December 2019

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