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)
- C#
- VB
- F#
public readonly struct FontMetrics : IEquatable<FontMetrics>
Public Structure FontMetrics
Implements IEquatable(Of FontMetrics)
[<SealedAttribute>]
type FontMetrics =
struct
inherit ValueType
interface IEquatable<FontMetrics>
end
Inheritance | Object → ValueType → FontMetrics |
Implements | IEquatable(FontMetrics) |
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
GetType() | Gets the Type of the current instance. (Inherited from Object) |