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
AdvanceHeightVertical advance height (distance to the next glyph's origin in vertical layout).
AdvanceWidthHorizontal advance width (distance to the next glyph's origin).
HeightHeight of the glyph's outline bounding box.
VerticalOriginXX coordinate of the vertical origin (used for vertical layout).
VerticalOriginYY coordinate of the vertical origin (used for vertical layout).
WidthWidth of the glyph's outline bounding box.
XBearingDistance from the x-origin to the leftmost outline point.
XOffsetHorizontal offset from the glyph's origin to the leftmost outline point (used for bitmap glyphs).
YBearingDistance from the topmost outline point to the y-origin.
YOffsetVertical offset from the glyph's origin to the topmost outline point (used for bitmap glyphs).

AdvanceHeight Property​

Vertical advance height (distance to the next glyph's origin in vertical layout).

public ushort AdvanceHeight { get; set; }

AdvanceWidth Property​

Horizontal advance width (distance to the next glyph's origin).

public ushort AdvanceWidth { get; set; }

Height Property​

Height of the glyph's outline bounding box.

public ushort Height { get; set; }

VerticalOriginX Property​

X coordinate of the vertical origin (used for vertical layout).

public ushort VerticalOriginX { get; set; }

VerticalOriginY Property​

Y coordinate of the vertical origin (used for vertical layout).

public ushort VerticalOriginY { get; set; }

Width Property​

Width of the glyph's outline bounding box.

public ushort Width { get; set; }

XBearing Property​

Distance from the x-origin to the leftmost outline point.

public int XBearing { get; set; }

XOffset Property​

Horizontal offset from the glyph's origin to the leftmost outline point (used for bitmap glyphs).

public ushort XOffset { get; set; }

YBearing Property​

Distance from the topmost outline point to the y-origin.

public int YBearing { get; set; }

YOffset Property​

Vertical offset from the glyph's origin to the topmost outline point (used for bitmap glyphs).

public ushort YOffset { get; set; }