Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Glyph

Constructor for a new glyph.
Read time 1 minuteLast updated 6 days ago

Definition

Glyph()

Constructor for a new glyph.
public Glyph()

Glyph(Glyph)

Constructor for a new glyph.
public Glyph(Glyph glyph)

Parameters

glyph

Glyph used as a reference for the new glyph.

Glyph(uint, GlyphMetrics, GlyphRect)

Constructor for a new glyph.
public Glyph(uint index, GlyphMetrics metrics, GlyphRect glyphRect)

Parameters

index

The index of the glyph in the font file.

The metrics of the glyph.

glyphRect

The GlyphRect defining the position of the glyph in the atlas texture.

Glyph(uint, GlyphMetrics, GlyphRect, float, int)

Constructor for a new glyph.
public Glyph(uint index, GlyphMetrics metrics, GlyphRect glyphRect, float scale, int atlasIndex)

Parameters

index

The index of the glyph in the font file.

The metrics of the glyph.

glyphRect

The GlyphRect defining the position of the glyph in the atlas texture.

scale

The relative scale of the glyph.

atlasIndex

The index of the atlas texture that contains the glyph.