Table of Contents

Class PackResult

Namespace
KernSmith.Atlas
Assembly
KernSmith.dll

Result of atlas packing: glyph placements, page count, and page dimensions.

public sealed class PackResult
Inheritance
PackResult
Inherited Members

Properties

PageCount

Total number of atlas pages needed.

public required int PageCount { get; init; }

Property Value

int

PageHeight

Height of each page in pixels.

public required int PageHeight { get; init; }

Property Value

int

PageWidth

Width of each page in pixels.

public required int PageWidth { get; init; }

Property Value

int

Placements

Where each glyph was placed (page index and XY position).

public required IReadOnlyList<GlyphPlacement> Placements { get; init; }

Property Value

IReadOnlyList<GlyphPlacement>