Table of Contents

Struct GlyphRect

Namespace
KernSmith.Atlas
Assembly
KernSmith.dll

A glyph's dimensions (including padding and spacing) used as input to atlas packing.

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

Constructors

GlyphRect(int, int, int)

A glyph's dimensions (including padding and spacing) used as input to atlas packing.

public GlyphRect(int Id, int Width, int Height)

Parameters

Id int

The glyph ID (usually the Unicode character code).

Width int

Bitmap width in pixels.

Height int

Bitmap height in pixels.

Properties

Height

Bitmap height in pixels.

public int Height { get; init; }

Property Value

int

Id

The glyph ID (usually the Unicode character code).

public int Id { get; init; }

Property Value

int

Width

Bitmap width in pixels.

public int Width { get; init; }

Property Value

int