# GlyphMetrics(float, float, float, float, float)

> Constructs a new GlyphMetrics structure.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.TextCore](/engine/6000.6/script-reference/unityengine/textcore.md)
* **Assembly:** UnityEngine.TextCoreFontEngineModule

```csharp
public GlyphMetrics(float width, float height, float bearingX, float bearingY, float advance)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The width of the glyph.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The height of the glyph.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The horizontal bearingX.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The horizontal bearingY.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The horizontal advance.

### Remarks

The horizontal bearingX represents the distance from the current drawing position (origin) relative to the element's left bounding box edge (bbox).

The horizontal bearingY represents the distance from the current drawing position (origin) relative to the element's top bounding box edge (bbox). This represents the top of the text element.

The horizontal advance represents the distance to increase (left to right) or decrease (right to left) the drawing position relative to the origin of the text element. This represents the origin of the next text element.
