FontMetrics Struct
Definition
The font metrics is holding information about a font's ascent, descent, etc. in design em units.
public struct FontMetrics
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | No summary available. |
Equals overloads
Equals Method
public bool Equals(Avalonia.Media.FontMetrics other)
Parameters
other Avalonia.Media.FontMetrics
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
| Name | Description |
|---|---|
| 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 bool 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. |
Ascent Property
Gets the recommended distance above the baseline in design em size.
public int Ascent { get; set; }
Descent Property
Gets the recommended distance under the baseline in design em size.
public int Descent { get; set; }
DesignEmHeight Property
Gets the font design units per em.
public ushort DesignEmHeight { get; set; }
IsFixedPitch Property
A bool value indicating whether all glyphs in the font have the same advancement.
public bool IsFixedPitch { get; set; }
LineGap Property
Gets the recommended additional space between two lines of text in design em size.
public int LineGap { get; set; }
LineSpacing Property
Gets the recommended line spacing of a formed text line.
public int LineSpacing { get; set; }
StrikethroughPosition Property
Gets a value that indicates the distance of the strikethrough from the baseline in design em size.
public int StrikethroughPosition { get; set; }
StrikethroughThickness Property
Gets a value that indicates the thickness of the underline in design em size.
public int StrikethroughThickness { get; set; }
UnderlinePosition Property
Gets a value that indicates the distance of the underline from the baseline in design em size.
public int UnderlinePosition { get; set; }
UnderlineThickness Property
Gets a value that indicates the thickness of the underline in design em size.
public int UnderlineThickness { get; set; }