---
title: "Aspose::Font::FontMetrics::GetAscender method"
url: "https://reference.aspose.com/font/cpp/aspose.font/fontmetrics/getascender/"
product: "Aspose.Font for C++"
description: "Aspose::Font::FontMetrics::GetAscender method. Returns ascender for specific Font size in C++."
---

## FontMetrics::GetAscender method


Returns ascender for specific [Font](../../font/) size.

```cpp
double Aspose::Font::FontMetrics::GetAscender(double fontSize) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| fontSize | double | [Font](../../font/) size. |

### ReturnValue

Ascender value.

## See Also

* Class [FontMetrics](../)
* Namespace [Aspose::Font](../../)
* Library [Aspose.Font for C++](../../../)
