Skip to main content

GlyphMetrics Struct

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia
public struct GlyphMetrics

Inheritance: ValueType -> GlyphMetrics

Implements: IEquatable<GlyphMetrics>

Methods​

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

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.GlyphMetrics other)
Parameters​

other Avalonia.Media.GlyphMetrics

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
HeightDistance from the top extremum of the glyph to the bottom extremum.
WidthDistance from the left extremum of the glyph to the right extremum.
XBearingDistance from the x-origin to the left extremum of the glyph.
YBearingDistance from the top extremum of the glyph to the y-origin.

Height Property​

Distance from the top extremum of the glyph to the bottom extremum.

public ushort Height { get; set; }

Width Property​

Distance from the left extremum of the glyph to the right extremum.

public ushort Width { get; set; }

XBearing Property​

Distance from the x-origin to the left extremum of the glyph.

public int XBearing { get; set; }

YBearing Property​

Distance from the top extremum of the glyph to the y-origin.

public int YBearing { get; set; }