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

Name Type
glyphIndex System.UInt32
page System.Int32
emBounds UnityEngine.Rect
atlasUv UnityEngine.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