{{newin|[[0.9.0]]|090|type=function}}
Gets the ascent of the Font.
The ascent spans the distance between the baseline and the top of the glyph that reaches farthest from the baseline.
== Function ==
=== Synopsis ===
<source lang="lua">
ascent = Font:getAscent( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|ascent|The ascent of the Font in pixels.}}
== See Also ==
* [[parent::Font]]
* [[Font:getDescent]]
* [[Font:getBaseline]]
[[Category:Functions]]
{{#set:Description=Gets the ascent of the Font in pixels.}}
== Other Languages ==
{{i18n|Font:getAscent}}