Skip to content

ITextStudioShapedGeometryBackend

InterfaceTextStudioTextStudio
public interface ITextStudioShapedGeometryBackend

Optional exact planar geometry accompanying the backend's existing shaped glyph revision.

TryGetShapedGlyphGeometry(int, out TextStudioBackendShapedGlyphGeometry)

Section titled “TryGetShapedGlyphGeometry(int, out TextStudioBackendShapedGlyphGeometry)”
bool TryGetShapedGlyphGeometry(int shapedGlyphIndex, out TextStudioBackendShapedGlyphGeometry geometry)

Gets planar geometry for one glyph in the current shaped revision, when available.

Parameters

Name Type
shapedGlyphIndex System.Int32
geometry TextStudio.TextStudioBackendShapedGlyphGeometry

Returns

System.Boolean

TryGetShapedPrimitive(int, out TextStudioBackendShapedPrimitive)

Section titled “TryGetShapedPrimitive(int, out TextStudioBackendShapedPrimitive)”
bool TryGetShapedPrimitive(int primitiveIndex, out TextStudioBackendShapedPrimitive primitive)

Gets one filled primitive owned by the current shaped revision.

Parameters

Name Type
primitiveIndex System.Int32
primitive TextStudio.TextStudioBackendShapedPrimitive

Returns

System.Boolean

int ShapedPrimitiveCount { get; }

Returns

System.Int32