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

NameType
planarTransformUnityEngine.Matrix4x4
geometryScaleSystem.Single
sourceStartSystem.Int32
sourceLengthSystem.Int32
assemblyIdSystem.Int32
colorsTextStudio.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