Skip to main content

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)

public readonly struct FontMetrics : IEquatable<FontMetrics>
View Source
InheritanceObjectValueType → FontMetrics
ImplementsIEquatable(FontMetrics)

Properties

AscentGets the recommended distance above the baseline in design em size.
DescentGets the recommended distance under the baseline in design em size.
DesignEmHeightGets the font design units per em.
IsFixedPitchA Boolean value indicating whether all glyphs in the font have the same advancement.
LineGapGets the recommended additional space between two lines of text in design em size.
LineSpacingGets the recommended line spacing of a formed text line.
StrikethroughPositionGets a value that indicates the distance of the strikethrough from the baseline in design em size.
StrikethroughThicknessGets a value that indicates the thickness of the underline in design em size.
UnderlinePositionGets a value that indicates the distance of the underline from the baseline in design em size.
UnderlineThicknessGets a value that indicates the thickness of the underline in design em size.

Methods

GetType()Gets the Type of the current instance.
(Inherited from Object)

See Also

Reference

Avalonia.Media Namespace