Table of Contents

Struct GlyphMetrics

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll
public readonly struct GlyphMetrics : IEquatable<GlyphMetrics>
Implements
Inherited Members

Properties

Height

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

public int Height { get; init; }

Property Value

int

Width

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

public int Width { get; init; }

Property Value

int

XBearing

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

public int XBearing { get; init; }

Property Value

int

YBearing

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

public int YBearing { get; init; }

Property Value

int

Methods

Equals(GlyphMetrics)

public bool Equals(GlyphMetrics other)

Parameters

other GlyphMetrics

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 ==(GlyphMetrics, GlyphMetrics)

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

Parameters

left GlyphMetrics
right GlyphMetrics

Returns

bool

operator !=(GlyphMetrics, GlyphMetrics)

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

Parameters

left GlyphMetrics
right GlyphMetrics

Returns

bool