Skip to content

ITextStudioShapedGlyphBackend

InterfaceTextStudioTextStudio
public interface ITextStudioShapedGlyphBackend

Optional topology contract for renderers that need the exact shaped glyph IDs and font outlines selected by a text backend. This keeps complex shaping and fallback font decisions authoritative when another renderer, such as Text Studio 3D, converts the backend output into different geometry.

TryGetShapedGlyph(int, out TextStudioBackendShapedGlyph)

Section titled “TryGetShapedGlyph(int, out TextStudioBackendShapedGlyph)”
bool TryGetShapedGlyph(int shapedGlyphIndex, out TextStudioBackendShapedGlyph glyph)

Gets one glyph from the current shaped topology revision.

Parameters

Name Type
shapedGlyphIndex System.Int32
glyph TextStudio.TextStudioBackendShapedGlyph

Returns

System.Boolean: false when the index is invalid or topology is unavailable.

TryGetShapedFontFace(int, out TextStudioBackendShapedFontFace)

Section titled “TryGetShapedFontFace(int, out TextStudioBackendShapedFontFace)”
bool TryGetShapedFontFace(int fontId, out TextStudioBackendShapedFontFace fontFace)

Gets the font face referenced by a shaped glyph.

Parameters

Name Type
fontId System.Int32
fontFace TextStudio.TextStudioBackendShapedFontFace

Returns

System.Boolean: false when the font is unavailable in the current revision.

int ShapedGlyphRevision { get; }

Returns

System.Int32

int ShapedGlyphCount { get; }

Returns

System.Int32