Skip to main content

GlyphInfo Struct

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Represents a single glyph.

public struct GlyphInfo

Inheritance: ValueType -> GlyphInfo

Implements: IEquatable<GlyphInfo>

Constructors​

NameDescription
GlyphInfoRepresents a single glyph.

GlyphInfo Constructor​

Represents a single glyph.

public GlyphInfo(ushort GlyphIndex, int GlyphCluster, double GlyphAdvance, Avalonia.Vector GlyphOffset)

Parameters​

GlyphIndex ushort

GlyphCluster int

GlyphAdvance double

GlyphOffset Avalonia.Vector

Methods​

NameDescription
DeconstructNo summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Deconstruct Method​

public void Deconstruct(ushort& GlyphIndex, int& GlyphCluster, double& GlyphAdvance, Avalonia.Vector& GlyphOffset)

Parameters​

GlyphIndex ushort&

GlyphCluster int&

GlyphAdvance double&

GlyphOffset Avalonia.Vector&

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.TextFormatting.GlyphInfo other)
Parameters​

other Avalonia.Media.TextFormatting.GlyphInfo

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
GlyphAdvanceGet the glyph advance.
GlyphClusterGet the glyph cluster.
GlyphIndexGet the glyph index.
GlyphOffsetGet the glyph offset.

GlyphAdvance Property​

Get the glyph advance.

public double GlyphAdvance { get; set; }

GlyphCluster Property​

Get the glyph cluster.

public int GlyphCluster { get; set; }

GlyphIndex Property​

Get the glyph index.

public ushort GlyphIndex { get; set; }

GlyphOffset Property​

Get the glyph offset.

public Avalonia.Vector GlyphOffset { get; set; }