Font:getAscent

Edit

Returns the ascent of the font. The ascent is the maximum amount glyphs ascend above the baseline. The units depend on the font's pixel density. With the default density, the units correspond to meters.

ascent = Font:getAscent()

Arguments

None

Returns

NameTypeDescription
ascentnumber The ascent of the font.

See also