TextStudioWritingGlyphRecord
public struct TextStudioWritingGlyphRecordSerializable glyph metrics and authored centerline and outline strokes for one font variation.
Constructors
Section titled “Constructors”
TextStudioWritingGlyphRecord(TextStudioWritingGlyphKey, Rect, float, TextStudioWritingStroke[], TextStudioWritingStroke[])
Section titled “TextStudioWritingGlyphRecord(TextStudioWritingGlyphKey, Rect, float, TextStudioWritingStroke[], TextStudioWritingStroke[])”public TextStudioWritingGlyphRecord(TextStudioWritingGlyphKey key, Rect designBounds, float advance, TextStudioWritingStroke[] centerlineStrokes, TextStudioWritingStroke[] outlineStrokes = null)Stores glyph metrics and independently clones both stroke collections so later input edits do not affect the record.
Parameters
| Name | Type |
|---|---|
key |
TextStudio.TextStudioWritingGlyphKey |
designBounds |
UnityEngine.Rect |
advance |
System.Single |
centerlineStrokes |
TextStudio.TextStudioWritingStroke[] |
outlineStrokes |
TextStudio.TextStudioWritingStroke[] |
Methods
Section titled “Methods”
GetCenterlineStroke(int)
Section titled “GetCenterlineStroke(int)”public TextStudioWritingStroke GetCenterlineStroke(int index)Returns an independent copy of the authored centerline stroke at the specified index.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioWritingStroke
GetOutlineStroke(int)
Section titled “GetOutlineStroke(int)”public TextStudioWritingStroke GetOutlineStroke(int index)Returns an independent copy of the authored outline stroke at the specified index.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioWritingStroke
Properties
Section titled “Properties”
public TextStudioWritingGlyphKey Key { get; }Returns
TextStudio.TextStudioWritingGlyphKey
DesignBounds
Section titled “DesignBounds”public Rect DesignBounds { get; }Returns
UnityEngine.Rect
Advance
Section titled “Advance”public float Advance { get; }Returns
System.Single
CenterlineStrokeCount
Section titled “CenterlineStrokeCount”public int CenterlineStrokeCount { get; }Returns
System.Int32
OutlineStrokeCount
Section titled “OutlineStrokeCount”public int OutlineStrokeCount { get; }Returns
System.Int32