Table of Contents

Struct GlyphPlacement

Namespace
KernSmith.Atlas
Assembly
KernSmith.dll

A glyph's assigned position within the atlas after packing.

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

Constructors

GlyphPlacement(int, int, int, int)

A glyph's assigned position within the atlas after packing.

public GlyphPlacement(int Id, int PageIndex, int X, int Y)

Parameters

Id int

The glyph ID (usually the Unicode character code).

PageIndex int

Which atlas page it's on (zero-based).

X int

X pixel position of the top-left corner on the page.

Y int

Y pixel position of the top-left corner on the page.

Properties

Id

The glyph ID (usually the Unicode character code).

public int Id { get; init; }

Property Value

int

PageIndex

Which atlas page it's on (zero-based).

public int PageIndex { get; init; }

Property Value

int

X

X pixel position of the top-left corner on the page.

public int X { get; init; }

Property Value

int

Y

Y pixel position of the top-left corner on the page.

public int Y { get; init; }

Property Value

int