FontBase:getAscender: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "<source" to "<syntaxhighlight" |
||
| Line 5: | Line 5: | ||
Returns the ascender of the font. The ascender of a font is the distance from the baseline to the highest position characters extend to. | Returns the ascender of the font. The ascender of a font is the distance from the baseline to the highest position characters extend to. | ||
< | <syntaxhighlight lang="lua"> | ||
(number) = FontBase:getAscender() | (number) = FontBase:getAscender() | ||
</source> | </source> | ||
Revision as of 13:28, 13 July 2023
Available since: Gideros 2011.6
Class: FontBase
Description
Returns the ascender of the font. The ascender of a font is the distance from the baseline to the highest position characters extend to.
<syntaxhighlight lang="lua"> (number) = FontBase:getAscender() </source>
Return values
Returns (number) The ascender of the font