FontMetrics Structure

The font metrics is holding information about a font's ascent, descent, etc. in design em units.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct FontMetrics : IEquatable<FontMetrics>
Inheritance
Object    ValueType    FontMetrics
Implements
IEquatableFontMetrics

Properties

Ascent Gets the recommended distance above the baseline in design em size.
Descent Gets the recommended distance under the baseline in design em size.
DesignEmHeight Gets the font design units per em.
IsFixedPitch A Boolean value indicating whether all glyphs in the font have the same advancement.
LineGap Gets the recommended additional space between two lines of text in design em size.
LineSpacing Gets the recommended line spacing of a formed text line.
StrikethroughPosition Gets a value that indicates the distance of the strikethrough from the baseline in design em size.
StrikethroughThickness Gets a value that indicates the thickness of the underline in design em size.
UnderlinePosition Gets a value that indicates the distance of the underline from the baseline in design em size.
UnderlineThickness Gets a value that indicates the thickness of the underline in design em size.

Methods

GetTypeGets the Type of the current instance.
(Inherited from Object)

See Also