Class KerningPair
Namespace: TMPro
Syntax
[Serializable]
public class KerningPair
Constructors
KerningPair()
Declaration
KerningPair(UInt32, UInt32, Single)
Declaration
public KerningPair(uint left, uint right, float offset)
Parameters
KerningPair(UInt32, GlyphValueRecord_Legacy, UInt32, GlyphValueRecord_Legacy)
Declaration
public KerningPair(uint firstGlyph, GlyphValueRecord_Legacy firstGlyphAdjustments, uint secondGlyph, GlyphValueRecord_Legacy secondGlyphAdjustments)
Parameters
Fields
xOffset
Declaration
[FormerlySerializedAs("XadvanceOffset")]
public float xOffset
Field Value
Properties
firstGlyph
The first glyph part of a kerning pair.
Declaration
public uint firstGlyph { get; set; }
Property Value
firstGlyphAdjustments
The positional adjustment of the first glyph.
Declaration
public GlyphValueRecord_Legacy firstGlyphAdjustments { get; }
Property Value
ignoreSpacingAdjustments
Determines if the Character Spacing property of the text object will affect the kerning pair.
This is mostly relevant when using Diacritical marks to prevent Character Spacing from altering the spacing.
Declaration
public bool ignoreSpacingAdjustments { get; }
Property Value
secondGlyph
The second glyph part of a kerning pair.
Declaration
public uint secondGlyph { get; set; }
Property Value
secondGlyphAdjustments
The positional adjustment of the second glyph.
Declaration
public GlyphValueRecord_Legacy secondGlyphAdjustments { get; }
Property Value