---
title: "ITrueTypeFont.GetAscent"
url: "https://reference.aspose.com/html/java/com.aspose.html.drawing/itruetypefont/getascent/"
product: "Aspose.HTML for Java API Reference"
description: "ITrueTypeFont method. Returns the ascent in points"
---

## ITrueTypeFont.GetAscent method

Returns the ascent, in points.

```java
public float GetAscent(float fontSize)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fontSize | Single | Size of the font. |

### Return Value

The ascent in points.

### See Also

* interface [ITrueTypeFont](../)
* package [com.aspose.html.drawing](../../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../../)
