Skip to content

TextStudioBackendShapedGlyph

StructTextStudioTextStudio
public readonly struct TextStudioBackendShapedGlyph

Immutable shaped-glyph topology and metrics published by a shaping-capable backend.

TextStudioBackendShapedGlyph(int, int, int, int, uint, Vector2, Vector2, float, float, float, Quaternion, bool, bool, DecorationBits)

Section titled “TextStudioBackendShapedGlyph(int, int, int, int, uint, Vector2, Vector2, float, float, float, Quaternion, bool, bool, DecorationBits)”
public TextStudioBackendShapedGlyph(int textUnitIndex, int clusterIndex, int fontId, int glyphIndex, uint codepoint, Vector2 baselineOrigin, Vector2 advance, float geometryScale, float italicShear, float syntheticBoldScale, Quaternion intrinsicRotation, bool isVisible, bool isWhitespace, DecorationBits decorations = DecorationBits.None)

Creates a shaped glyph mapped to a semantic text unit and font face.

Parameters

Name Type
textUnitIndex System.Int32
clusterIndex System.Int32
fontId System.Int32
glyphIndex System.Int32
codepoint System.UInt32
baselineOrigin UnityEngine.Vector2
advance UnityEngine.Vector2
geometryScale System.Single
italicShear System.Single
syntheticBoldScale System.Single
intrinsicRotation UnityEngine.Quaternion
isVisible System.Boolean
isWhitespace System.Boolean
decorations TextStudio.DecorationBits

public int TextUnitIndex { get; }

Returns

System.Int32

public int ClusterIndex { get; }

Returns

System.Int32

public int FontId { get; }

Returns

System.Int32

public int GlyphIndex { get; }

Returns

System.Int32

public uint Codepoint { get; }

Returns

System.UInt32

public Vector2 BaselineOrigin { get; }

Returns

UnityEngine.Vector2

public Vector2 Advance { get; }

Returns

UnityEngine.Vector2

public float GeometryScale { get; }

Returns

System.Single

public float ItalicShear { get; }

Returns

System.Single

public float SyntheticBoldScale { get; }

Returns

System.Single

public Quaternion IntrinsicRotation { get; }

Returns

UnityEngine.Quaternion

public bool IsVisible { get; }

Returns

System.Boolean

public bool IsWhitespace { get; }

Returns

System.Boolean

public DecorationBits Decorations { get; }

Returns

TextStudio.DecorationBits