Table of Contents

Struct Padding

Namespace
KernSmith
Assembly
KernSmith.dll

Padding around each glyph in the atlas, in pixels.

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

Constructors

Padding(int)

Same padding on all four sides.

public Padding(int all)

Parameters

all int

Padding(int, int, int, int)

Padding around each glyph in the atlas, in pixels.

public Padding(int Up, int Right, int Down, int Left)

Parameters

Up int
Right int
Down int
Left int

Properties

Down

public int Down { get; init; }

Property Value

int

Left

public int Left { get; init; }

Property Value

int

Right

public int Right { get; init; }

Property Value

int

Up

public int Up { get; init; }

Property Value

int

Zero

No padding on any side.

public static Padding Zero { get; }

Property Value

Padding