Difference between revisions of "Font:getHeight"

(Font:getHeight() doesn't have arguments.)
(Tag: Undo)
 
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
height = font:getHeight( text )
+
height = font:getHeight( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|string|text|A string.}}
+
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|height|The height of the text in pixels.}}
+
{{param|number|height|The height of the Font in pixels.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::Font]]
 
* [[parent::Font]]

Latest revision as of 21:01, 7 March 2025

Gets the height of the Font. The height of the font is the size including any spacing; the height which it will need.

Function

Synopsis

height = font:getHeight( )

Arguments

None.

Returns

number height
The height of the Font in pixels.

See Also


Other Languages