Struct GlyphPlacement
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
IdintThe glyph ID (usually the Unicode character code).
PageIndexintWhich atlas page it's on (zero-based).
XintX pixel position of the top-left corner on the page.
YintY 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
PageIndex
Which atlas page it's on (zero-based).
public int PageIndex { get; init; }
Property Value
X
X pixel position of the top-left corner on the page.
public int X { get; init; }
Property Value
Y
Y pixel position of the top-left corner on the page.
public int Y { get; init; }