CompiledWritingFont
public sealed class CompiledWritingFontImmutable compiled glyph paths indexed by font, glyph, and variation identity.
Methods
Section titled “Methods”
GetGlyph(int)
Section titled “GetGlyph(int)”public TextStudioCompiledWritingGlyph GetGlyph(int index)Returns the compiled metrics and writing paths of the glyph at the specified index.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.TextStudioCompiledWritingGlyph
TryGetGlyph(TextStudioWritingGlyphKey, out TextStudioCompiledWritingGlyph)
Section titled “TryGetGlyph(TextStudioWritingGlyphKey, out TextStudioCompiledWritingGlyph)”public bool TryGetGlyph(TextStudioWritingGlyphKey key, out TextStudioCompiledWritingGlyph glyph)Looks up compiled writing paths by font, glyph, and variation identity; returns false and a default glyph when no entry exists.
Parameters
| Name | Type |
|---|---|
key |
TextStudio.TextStudioWritingGlyphKey |
glyph |
TextStudio.TextStudioCompiledWritingGlyph |
Returns
System.Boolean
Properties
Section titled “Properties”
UnitsPerEm
Section titled “UnitsPerEm”public float UnitsPerEm { get; }Returns
System.Single
GlyphCount
Section titled “GlyphCount”public int GlyphCount { get; }Returns
System.Int32