Skip to content

TextStudioShapedGlyphPreparationSnapshot

ClassTextStudioTextStudio
public sealed class TextStudioShapedGlyphPreparationSnapshot

Caller-owned shaped glyph and font-face data for one representative preparation sample.

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[]

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

public int GlyphCount { get; }

Returns

System.Int32

public int FontFaceCount { get; }

Returns

System.Int32