# GlyphRect

> Constructor for a new GlyphRect.

## Definition

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

## GlyphRect(int, int, int, int)

Constructor for a new GlyphRect.

```csharp
public GlyphRect(int x, int y, int width, int height)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The x position of the glyph in the atlas texture.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The y position of the glyph in the atlas texture.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The width of the glyph.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The height of the glyph.

## GlyphRect(Rect)

Constructor for a new GlyphRect.

```csharp
public GlyphRect(Rect rect)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): The Rect used to construct the new GlyphRect.
