Table of Contents

Struct ScaledKerningPair

Namespace
KernSmith.Font.Models
Assembly
KernSmith.dll

A kerning pair with the adjustment already scaled to pixel values. Unlike KerningPair (which stores font design units requiring caller scaling), this type is used by rasterizers that return pre-scaled pixel values (e.g., GDI's GetKerningPairsW).

public readonly record struct ScaledKerningPair : IEquatable<ScaledKerningPair>
Implements
Inherited Members

Constructors

ScaledKerningPair(int, int, int)

A kerning pair with the adjustment already scaled to pixel values. Unlike KerningPair (which stores font design units requiring caller scaling), this type is used by rasterizers that return pre-scaled pixel values (e.g., GDI's GetKerningPairsW).

public ScaledKerningPair(int LeftCodepoint, int RightCodepoint, int Amount)

Parameters

LeftCodepoint int
RightCodepoint int
Amount int

Properties

Amount

public int Amount { get; init; }

Property Value

int

LeftCodepoint

public int LeftCodepoint { get; init; }

Property Value

int

RightCodepoint

public int RightCodepoint { get; init; }

Property Value

int