Difference between revisions of "Font:getHeight"
(→See Also) |
Deri lulzz (talk | contribs) |
||
Line 4: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | height = font:getHeight( ) | + | height = font:getHeight( text ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | + | {{param|string|text|A string.}} | |
=== Returns === | === Returns === | ||
− | {{param|number|height|The height of the | + | {{param|number|height|The height of the text in pixels.}} |
== See Also == | == See Also == | ||
* [[parent::Font]] | * [[parent::Font]] |
Latest revision as of 13:23, 21 February 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( text )
Arguments
string text
- A string.
Returns
number height
- The height of the text in pixels.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info