TextStudioFontAppearanceData
public sealed class TextStudioFontAppearanceData : ScriptableObjectBuild-safe font curves and MTSDF tiers. Players consume prepared fields and never execute a desktop baker.
Fields
Section titled “Fields”
CurrentSchema
Section titled “CurrentSchema”public const int CurrentSchema = 1Returns
System.Int32
GeneratorVersion
Section titled “GeneratorVersion”public const string GeneratorVersion = "msdfgen-1.13-1874bcf7/ts-1"Returns
System.String
Methods
Section titled “Methods”
GetTier(int)
Section titled “GetTier(int)”public TextStudioPreparedFieldTier GetTier(int index)Returns the prepared font-field tier at the supplied array index.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioPreparedFieldTier
GetCurveSource()
Section titled “GetCurveSource()”public ICurveFontFace GetCurveSource()Returns the cached curve font face from embedded source bytes, or null for missing bytes or an outdated schema.
Returns
TextStudio.Geometry.ICurveFontFace
SelectTier(float, float)
Section titled “SelectTier(float, float)”public int SelectTier(float minimumPixelsPerEm, float minimumSafeDistanceEm)Returns the smallest qualifying tier by texture payload for the required pixel density and safe distance, or -1 when none qualifies.
Parameters
| Name | Type |
|---|---|
minimumPixelsPerEm |
System.Single |
minimumSafeDistanceEm |
System.Single |
Returns
System.Int32
Validate(out string)
Section titled “Validate(out string)”public bool Validate(out string error)Checks prepared font schema, embedded-source metadata, field tiers, and resource limits, returning a diagnostic on failure.
Parameters
| Name | Type |
|---|---|
error |
System.String |
Returns
System.Boolean
ValidateSource(out string)
Section titled “ValidateSource(out string)”public bool ValidateSource(out string error)Checks embedded source identity and glyph coverage. Use during authoring or builds, outside frame evaluation.
Parameters
| Name | Type |
|---|---|
error |
System.String |
Returns
System.Boolean
Constructors
Section titled “Constructors”
TextStudioFontAppearanceData()
Section titled “TextStudioFontAppearanceData()”public TextStudioFontAppearanceData()Properties
Section titled “Properties”
public Object Font { get; }Returns
UnityEngine.Object
SourceName
Section titled “SourceName”public string SourceName { get; }Returns
System.String
SourceHash
Section titled “SourceHash”public string SourceHash { get; }Returns
System.String
Generator
Section titled “Generator”public string Generator { get; }Returns
System.String
FaceIndex
Section titled “FaceIndex”public int FaceIndex { get; }Returns
System.Int32
Revision
Section titled “Revision”public uint Revision { get; }Returns
System.UInt32
TierCount
Section titled “TierCount”public int TierCount { get; }Returns
System.Int32
SourceBytes
Section titled “SourceBytes”public int SourceBytes { get; }Returns
System.Int32