ITextStudioShapedGlyphBackend
public interface ITextStudioShapedGlyphBackendOptional 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.
Methods
Section titled “Methods”
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.
Properties
Section titled “Properties”
ShapedGlyphRevision
Section titled “ShapedGlyphRevision”int ShapedGlyphRevision { get; }Returns
System.Int32
ShapedGlyphCount
Section titled “ShapedGlyphCount”int ShapedGlyphCount { get; }Returns
System.Int32