# GlyphMetrics

> A set of values that define the size, position and spacing of a glyph when performing text layout.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.TextCore](/engine/6000.5/script-reference/unityengine/textcore.md)
* **Assembly:** UnityEngine.TextCoreFontEngineModule
* **Implements:** [IEquatable\<GlyphMetrics>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct GlyphMetrics : IEquatable<GlyphMetrics>
```

## Constructors

| Constructor                                                                                                                                                      | Description                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [GlyphMetrics(System.Single,System.Single,System.Single,System.Single,System.Single)](/engine/6000.5/script-reference/unityengine/textcore/glyphmetrics/ctor.md) | Constructs a new GlyphMetrics structure. |

## Properties

| Property                                                                                                      | Description                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [height](/engine/6000.5/script-reference/unityengine/textcore/glyphmetrics/height.md)                         | The height of the glyph.                                                                                                                         |
| [horizontalAdvance](/engine/6000.5/script-reference/unityengine/textcore/glyphmetrics/horizontaladvance.md)   | The horizontal distance to increase (left to right) or decrease (right to left) the drawing position relative to the origin of the text element. |
| [horizontalBearingX](/engine/6000.5/script-reference/unityengine/textcore/glyphmetrics/horizontalbearingx.md) | The horizontal distance from the current drawing position (origin) relative to the element's left bounding box edge (bbox).                      |
| [horizontalBearingY](/engine/6000.5/script-reference/unityengine/textcore/glyphmetrics/horizontalbearingy.md) | The vertical distance from the current baseline relative to the element's top bounding box edge (bbox).                                          |
| [width](/engine/6000.5/script-reference/unityengine/textcore/glyphmetrics/width.md)                           | The width of the glyph.                                                                                                                          |
