TextStudioShapedGlyphPreparationSnapshot
public sealed class TextStudioShapedGlyphPreparationSnapshotCaller-owned shaped glyph and font-face data for one representative preparation sample.
Constructors
Section titled “Constructors”
TextStudioShapedGlyphPreparationSnapshot(TextStudioBackendShapedGlyph[], TextStudioBackendShapedFontFace[])
Section titled “TextStudioShapedGlyphPreparationSnapshot(TextStudioBackendShapedGlyph[], TextStudioBackendShapedFontFace[])”public TextStudioShapedGlyphPreparationSnapshot(TextStudioBackendShapedGlyph[] glyphs, TextStudioBackendShapedFontFace[] fontFaces)Creates a snapshot by copying the supplied glyph and font-face data.
Parameters
| Name | Type |
|---|---|
glyphs |
TextStudio.TextStudioBackendShapedGlyph[] |
fontFaces |
TextStudio.TextStudioBackendShapedFontFace[] |
Methods
Section titled “Methods”
TryGetGlyph(int, out TextStudioBackendShapedGlyph)
Section titled “TryGetGlyph(int, out TextStudioBackendShapedGlyph)”public bool TryGetGlyph(int index, out TextStudioBackendShapedGlyph glyph)Gets the shaped glyph at the supplied snapshot index.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
glyph |
TextStudio.TextStudioBackendShapedGlyph |
Returns
System.Boolean
TryGetFontFace(int, out TextStudioBackendShapedFontFace)
Section titled “TryGetFontFace(int, out TextStudioBackendShapedFontFace)”public bool TryGetFontFace(int fontId, out TextStudioBackendShapedFontFace fontFace)Gets the font face identified by the supplied backend font ID.
Parameters
| Name | Type |
|---|---|
fontId |
System.Int32 |
fontFace |
TextStudio.TextStudioBackendShapedFontFace |
Returns
System.Boolean
Properties
Section titled “Properties”
GlyphCount
Section titled “GlyphCount”public int GlyphCount { get; }Returns
System.Int32
FontFaceCount
Section titled “FontFaceCount”public int FontFaceCount { get; }Returns
System.Int32