# AscentCalculationMode

> Method used for calculating a font's ascent.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public enum AscentCalculationMode
```

## Remarks

The ascent is the distance from the baseline to the top of the font. Font designers define this differently within the metrics of various fonts: some fonts will use the bounding box height, some will use cap height, and others will account for diacritics such as accent marks. Because these differences can affect vertical alignment of text, Unity offers multiple methods of determining the ascent value to use internally.

See [](https://en.wikipedia.org/wiki/Typeface#Font_metrics)[https://en.wikipedia.org/wiki/Typeface#Font\_metrics](https://en.wikipedia.org/wiki/Typeface#Font_metrics) for additional information about ascent and  font metrics.

## Fields

| Value                                                                                                   | Description                 |
| ------------------------------------------------------------------------------------------------------- | --------------------------- |
| [FaceAscender](/engine/6000.0/script-reference/unityeditor/ascentcalculationmode/faceascender.md)       | Ascender method.            |
| [FaceBoundingBox](/engine/6000.0/script-reference/unityeditor/ascentcalculationmode/faceboundingbox.md) | Bounding box method.        |
| [Legacy2x](/engine/6000.0/script-reference/unityeditor/ascentcalculationmode/legacy2x.md)               | Legacy bounding box method. |
