Struct FontMetrics
The font metrics is holding information about a font's ascent, descent, etc. in design em units.
public readonly struct FontMetrics : IEquatable<FontMetrics>
- Implements
- Inherited Members
Properties
Ascent
Gets the recommended distance above the baseline in design em size.
public int Ascent { get; init; }
Property Value
Descent
Gets the recommended distance under the baseline in design em size.
public int Descent { get; init; }
Property Value
DesignEmHeight
Gets the font design units per em.
public short DesignEmHeight { get; init; }
Property Value
IsFixedPitch
A bool value indicating whether all glyphs in the font have the same advancement.
public bool IsFixedPitch { get; init; }
Property Value
LineGap
Gets the recommended additional space between two lines of text in design em size.
public int LineGap { get; init; }
Property Value
LineSpacing
Gets the recommended line spacing of a formed text line.
public int LineSpacing { get; }
Property Value
StrikethroughPosition
Gets a value that indicates the distance of the strikethrough from the baseline in design em size.
public int StrikethroughPosition { get; init; }
Property Value
StrikethroughThickness
Gets a value that indicates the thickness of the underline in design em size.
public int StrikethroughThickness { get; init; }
Property Value
UnderlinePosition
Gets a value that indicates the distance of the underline from the baseline in design em size.
public int UnderlinePosition { get; init; }
Property Value
UnderlineThickness
Gets a value that indicates the thickness of the underline in design em size.
public int UnderlineThickness { get; init; }
Property Value
Methods
Equals(FontMetrics)
public bool Equals(FontMetrics other)
Parameters
other
FontMetrics
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(FontMetrics, FontMetrics)
public static bool operator ==(FontMetrics left, FontMetrics right)
Parameters
left
FontMetricsright
FontMetrics
Returns
operator !=(FontMetrics, FontMetrics)
public static bool operator !=(FontMetrics left, FontMetrics right)
Parameters
left
FontMetricsright
FontMetrics