Table of Contents

Class RasterizerFontMetrics

Namespace
KernSmith.Rasterizer
Assembly
KernSmith.dll

Font-wide metrics provided by a rasterizer backend.

public sealed record RasterizerFontMetrics : IEquatable<RasterizerFontMetrics>
Inheritance
RasterizerFontMetrics
Implements
Inherited Members

Properties

Ascent

Ascent in pixels (distance from baseline to top of highest glyph).

public required int Ascent { get; init; }

Property Value

int

Descent

Descent in pixels (distance from baseline to bottom of lowest glyph).

public required int Descent { get; init; }

Property Value

int

LineHeight

Line height in pixels (typically Ascent + Descent).

public required int LineHeight { get; init; }

Property Value

int