Struct GlyphInfo
- Namespace
- Avalonia.Media.TextFormatting
- Assembly
- Avalonia.Base.dll
Represents a single glyph.
public readonly struct GlyphInfo : IEquatable<GlyphInfo>
- Implements
- Inherited Members
Constructors
GlyphInfo(ushort, int, double, Vector)
Represents a single glyph.
public GlyphInfo(ushort GlyphIndex, int GlyphCluster, double GlyphAdvance, Vector GlyphOffset = default)
Parameters
Properties
GlyphAdvance
Get the glyph advance.
public double GlyphAdvance { get; }
Property Value
GlyphCluster
Get the glyph cluster.
public int GlyphCluster { get; }
Property Value
GlyphIndex
Get the glyph index.
public ushort GlyphIndex { get; }
Property Value
GlyphOffset
Get the glyph offset.
public Vector GlyphOffset { get; }
Property Value
Methods
Deconstruct(out ushort, out int, out double, out Vector)
public void Deconstruct(out ushort GlyphIndex, out int GlyphCluster, out double GlyphAdvance, out Vector GlyphOffset)
Parameters
Equals(GlyphInfo)
public bool Equals(GlyphInfo other)
Parameters
other
GlyphInfo
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(GlyphInfo, GlyphInfo)
public static bool operator ==(GlyphInfo left, GlyphInfo right)
Parameters
Returns
operator !=(GlyphInfo, GlyphInfo)
public static bool operator !=(GlyphInfo left, GlyphInfo right)