WritingFontAsset
public sealed class WritingFontAsset : ScriptableObjectFont-specific authored centerlines and prepared contours keyed by glyph variation.
Fields
Section titled “Fields”
CurrentSchemaVersion
Section titled “CurrentSchemaVersion”public const int CurrentSchemaVersion = 1Returns
System.Int32
Methods
Section titled “Methods”
GetGlyph(int)
Section titled “GetGlyph(int)”public TextStudioWritingGlyphRecord GetGlyph(int index)Returns an independent copy of a glyph record, including its authored stroke and knot data.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioWritingGlyphRecord
SetGlyphs(float, TextStudioWritingGlyphRecord[])
Section titled “SetGlyphs(float, TextStudioWritingGlyphRecord[])”public void SetGlyphs(float unitsPerEm, TextStudioWritingGlyphRecord[] glyphs)Replaces glyph records with independent copies, clamps units per em to at least one, repairs stroke identities, and advances the asset revision.
Parameters
| Name | Type |
|---|---|
unitsPerEm |
System.Single |
glyphs |
TextStudio.TextStudioWritingGlyphRecord[] |
Constructors
Section titled “Constructors”
WritingFontAsset()
Section titled “WritingFontAsset()”public WritingFontAsset()Properties
Section titled “Properties”
SchemaVersion
Section titled “SchemaVersion”public int SchemaVersion { get; }Returns
System.Int32
Revision
Section titled “Revision”public int Revision { get; }Returns
System.Int32
UnitsPerEm
Section titled “UnitsPerEm”public float UnitsPerEm { get; }Returns
System.Single
GlyphCount
Section titled “GlyphCount”public int GlyphCount { get; }Returns
System.Int32