Skip to content

TextStudioBackendShapedGlyphGeometry

StructTextStudioTextStudio
public readonly struct TextStudioBackendShapedGlyphGeometry

Additional font-EM to reference-EM mapping without replacing shaped glyph identity.

TextStudioBackendShapedGlyphGeometry(Matrix4x4, float, int, int, int, TextStudioGlyphColorQuad)

Section titled “TextStudioBackendShapedGlyphGeometry(Matrix4x4, float, int, int, int, TextStudioGlyphColorQuad)”
public TextStudioBackendShapedGlyphGeometry(Matrix4x4 planarTransform, float geometryScale, int sourceStart, int sourceLength, int assemblyId = 0, TextStudioGlyphColorQuad colors = default)

Maps one shaped glyph's planar outline into the backend's reference space and source range.

Parameters

Name Type
planarTransform UnityEngine.Matrix4x4
geometryScale System.Single
sourceStart System.Int32
sourceLength System.Int32
assemblyId System.Int32
colors TextStudio.TextStudioGlyphColorQuad

public Matrix4x4 PlanarTransform { get; }

Returns

UnityEngine.Matrix4x4

public float GeometryScale { get; }

Returns

System.Single

public int SourceStart { get; }

Returns

System.Int32

public int SourceLength { get; }

Returns

System.Int32

public int AssemblyId { get; }

Returns

System.Int32

public bool IsPresent { get; }

Returns

System.Boolean

public TextStudioGlyphColorQuad Colors { get; }

Returns

TextStudio.TextStudioGlyphColorQuad

public bool IsValid { get; }

Returns

System.Boolean