Struct FontMetrics
Represents the metrics of the font.
public readonly record struct FontMetrics : IEquatable<FontMetrics>
- Implements
- Inherited Members
- Extension Methods
Constructors
FontMetrics(float, float, float, float, float)
Represents the metrics of the font.
public FontMetrics(float Ascent, float Descent, float LineGap, float LowercaseHeight, float CapitalHeight)
Parameters
AscentfloatThe distance from the baseline to the top of the tallest glyph.
DescentfloatThe distance from the baseline to the bottom of the lowest glyph.
LineGapfloatThe recommended spacing between lines of text.
LowercaseHeightfloatThe height of lowercase letters in the font.
CapitalHeightfloatThe height of uppercase letters in the font.
Properties
Ascent
The distance from the baseline to the top of the tallest glyph.
public float Ascent { get; init; }
Property Value
CapitalHeight
The height of uppercase letters in the font.
public float CapitalHeight { get; init; }
Property Value
Descent
The distance from the baseline to the bottom of the lowest glyph.
public float Descent { get; init; }
Property Value
LineGap
The recommended spacing between lines of text.
public float LineGap { get; init; }
Property Value
LowercaseHeight
The height of lowercase letters in the font.
public float LowercaseHeight { get; init; }