Version: 2020.1
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

atlasIndexThe index of the atlas texture that contains this glyph.
glyphRectA rectangle that defines the position of a glyph within an atlas texture.
indexThe index of the glyph in the source font file.
metricsThe metrics that define the size, position and spacing of a glyph when performing text layout.
scaleThe relative scale of the glyph. The default value is 1.0.

Constructors

GlyphConstructor for a new glyph.

Public Methods

CompareCompares two glyphs to determine if they have the same values.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答