Table of Contents

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

GlyphIndex ushort
GlyphCluster int
GlyphAdvance double
GlyphOffset Vector

Properties

GlyphAdvance

Get the glyph advance.

public double GlyphAdvance { get; }

Property Value

double

GlyphCluster

Get the glyph cluster.

public int GlyphCluster { get; }

Property Value

int

GlyphIndex

Get the glyph index.

public ushort GlyphIndex { get; }

Property Value

ushort

GlyphOffset

Get the glyph offset.

public Vector GlyphOffset { get; }

Property Value

Vector

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

GlyphIndex ushort
GlyphCluster int
GlyphAdvance double
GlyphOffset Vector

Equals(GlyphInfo)

public bool Equals(GlyphInfo other)

Parameters

other GlyphInfo

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(GlyphInfo, GlyphInfo)

public static bool operator ==(GlyphInfo left, GlyphInfo right)

Parameters

left GlyphInfo
right GlyphInfo

Returns

bool

operator !=(GlyphInfo, GlyphInfo)

public static bool operator !=(GlyphInfo left, GlyphInfo right)

Parameters

left GlyphInfo
right GlyphInfo

Returns

bool