Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

Glyph

class in UnityEngine.TextCore

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

Properties

Property Description
atlasIndex The index of the atlas texture that contains this glyph.
classDefinitionType Glyph class definition type.
glyphRect A rectangle that defines the position of a glyph within an atlas texture.
index The index of the glyph in the source font file.
metrics The metrics that define the size, position and spacing of a glyph when performing text layout.
scale The relative scale of the glyph. The default value is 1.0.

Constructors

Constructor Description
Glyph Constructor for a new glyph.

Public Methods

Method Description
Compare Compares two glyphs to determine if they have the same values.