TextStudioBackendShapedGlyph
public readonly struct TextStudioBackendShapedGlyphImmutable shaped-glyph topology and metrics published by a shaping-capable backend.
Constructors
Section titled “Constructors”
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 |
Properties
Section titled “Properties”
TextUnitIndex
Section titled “TextUnitIndex”public int TextUnitIndex { get; }Returns
System.Int32
ClusterIndex
Section titled “ClusterIndex”public int ClusterIndex { get; }Returns
System.Int32
FontId
Section titled “FontId”public int FontId { get; }Returns
System.Int32
GlyphIndex
Section titled “GlyphIndex”public int GlyphIndex { get; }Returns
System.Int32
Codepoint
Section titled “Codepoint”public uint Codepoint { get; }Returns
System.UInt32
BaselineOrigin
Section titled “BaselineOrigin”public Vector2 BaselineOrigin { get; }Returns
UnityEngine.Vector2
Advance
Section titled “Advance”public Vector2 Advance { get; }Returns
UnityEngine.Vector2
GeometryScale
Section titled “GeometryScale”public float GeometryScale { get; }Returns
System.Single
ItalicShear
Section titled “ItalicShear”public float ItalicShear { get; }Returns
System.Single
SyntheticBoldScale
Section titled “SyntheticBoldScale”public float SyntheticBoldScale { get; }Returns
System.Single
IntrinsicRotation
Section titled “IntrinsicRotation”public Quaternion IntrinsicRotation { get; }Returns
UnityEngine.Quaternion
IsVisible
Section titled “IsVisible”public bool IsVisible { get; }Returns
System.Boolean
IsWhitespace
Section titled “IsWhitespace”public bool IsWhitespace { get; }Returns
System.Boolean
Decorations
Section titled “Decorations”public DecorationBits Decorations { get; }Returns
TextStudio.DecorationBits