TextStudioPreparedGlyphField
public struct TextStudioPreparedGlyphFieldOne shaped glyph’s field placement. Bounds and canonical font curves use em coordinates.
Constructors
Section titled “Constructors”
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 |
Properties
Section titled “Properties”
GlyphIndex
Section titled “GlyphIndex”public uint GlyphIndex { get; }Returns
System.UInt32
public int Page { get; }Returns
System.Int32
EmBounds
Section titled “EmBounds”public Rect EmBounds { get; }Returns
UnityEngine.Rect
AtlasUv
Section titled “AtlasUv”public Rect AtlasUv { get; }Returns
UnityEngine.Rect