Struct GlyphRect
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
IdintThe glyph ID (usually the Unicode character code).
WidthintBitmap width in pixels.
HeightintBitmap height in pixels.
Properties
Height
Bitmap height in pixels.
public int Height { get; init; }
Property Value
Id
The glyph ID (usually the Unicode character code).
public int Id { get; init; }
Property Value
Width
Bitmap width in pixels.
public int Width { get; init; }