# Glyph

> A Glyph is the visual representation of a text element or character.

## Definition

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

```csharp
public class Glyph
```

## Constructors

| Constructor                                                                                                                                                                                                                           | Description                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| [Glyph()](/engine/6000.5/script-reference/unityengine/textcore/glyph/ctor.md#glyph\(\))                                                                                                                                               | Constructor for a new glyph. |
| [Glyph(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect)](/engine/6000.5/script-reference/unityengine/textcore/glyph/ctor.md#glyph\(uint-glyphmetrics-glyphrect\))                                      | Constructor for a new glyph. |
| [Glyph(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect,System.Single,System.Int32)](/engine/6000.5/script-reference/unityengine/textcore/glyph/ctor.md#glyph\(uint-glyphmetrics-glyphrect-float-int\)) | Constructor for a new glyph. |
| [Glyph(UnityEngine.TextCore.Glyph)](/engine/6000.5/script-reference/unityengine/textcore/glyph/ctor.md#glyph\(glyph\))                                                                                                                | Constructor for a new glyph. |

## Properties

| Property                                                                                                 | Description                                                                                    |
| -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [atlasIndex](/engine/6000.5/script-reference/unityengine/textcore/glyph/atlasindex.md)                   | The index of the atlas texture that contains this glyph.                                       |
| [classDefinitionType](/engine/6000.5/script-reference/unityengine/textcore/glyph/classdefinitiontype.md) | Glyph class definition type.                                                                   |
| [glyphRect](/engine/6000.5/script-reference/unityengine/textcore/glyph/glyphrect.md)                     | A rectangle that defines the position of a glyph within an atlas texture.                      |
| [index](/engine/6000.5/script-reference/unityengine/textcore/glyph/index.md)                             | The index of the glyph in the source font file.                                                |
| [metrics](/engine/6000.5/script-reference/unityengine/textcore/glyph/metrics.md)                         | The metrics that define the size, position and spacing of a glyph when performing text layout. |
| [scale](/engine/6000.5/script-reference/unityengine/textcore/glyph/scale.md)                             | The relative scale of the glyph. The default value is 1.0.                                     |

## Methods

| Method                                                                           | Description                                                    |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [Compare](/engine/6000.5/script-reference/unityengine/textcore/glyph/compare.md) | Compares two glyphs to determine if they have the same values. |
