Table of Contents

Struct FontMetrics

Namespace
Icy.Rendering.Fonts
Assembly
IcyUI.dll

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

Ascent float

The distance from the baseline to the top of the tallest glyph.

Descent float

The distance from the baseline to the bottom of the lowest glyph.

LineGap float

The recommended spacing between lines of text.

LowercaseHeight float

The height of lowercase letters in the font.

CapitalHeight float

The 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

float

CapitalHeight

The height of uppercase letters in the font.

public float CapitalHeight { get; init; }

Property Value

float

Descent

The distance from the baseline to the bottom of the lowest glyph.

public float Descent { get; init; }

Property Value

float

LineGap

The recommended spacing between lines of text.

public float LineGap { get; init; }

Property Value

float

LowercaseHeight

The height of lowercase letters in the font.

public float LowercaseHeight { get; init; }

Property Value

float