Skip to content

TextStudioPreparedGlyphField

StructTextStudioTextStudio
public struct TextStudioPreparedGlyphField

One shaped glyph's field placement. Bounds and canonical font curves use em coordinates.

TextStudioPreparedGlyphField(uint, int, Rect, Rect)

Section titled “TextStudioPreparedGlyphField(uint, int, Rect, Rect)”
public TextStudioPreparedGlyphField(uint glyphIndex, int page, Rect emBounds, Rect atlasUv)

Associates a shaped glyph identifier with its atlas page, em-space bounds, and atlas UV rectangle.

Parameters

NameType
glyphIndexSystem.UInt32
pageSystem.Int32
emBoundsUnityEngine.Rect
atlasUvUnityEngine.Rect

public uint GlyphIndex { get; }

Returns

System.UInt32

public int Page { get; }

Returns

System.Int32

public Rect EmBounds { get; }

Returns

UnityEngine.Rect

public Rect AtlasUv { get; }

Returns

UnityEngine.Rect