PDF Plugin for Xojo |

# Font.Ascent Property (console safe)

Gets the vertical ascent of the font.

Ascent as Integer {Read}

#### Remarks

Note this is the ascent for the font and is not relative to font size or the page.
To get it relative to the page and font size then you calculate it as follows:

Dim ascent as Single
// For font size 12
ascent = font.Ascent * 12 / 1000.0

#### See Also

Font Class