MinecraftFontGlyph
Immutable detached glyph pixels and native logical metrics. Ink bounds are relative to the same top-left logical origin supplied to Minecraft text drawing. The image contains the complete sampled glyph rectangle, ready for ordinary RGBA tint multiplication; intensity backends replicate coverage into every channel before returning it. A null image represents an advance without ink unless MinecraftFontGlyph.oversizedRasterSize records an atlas-rejected source raster. MinecraftFontGlyph.channel records provenance without requiring another shader conversion. MinecraftFontGlyph.orientation preserves reversed native source coordinates through normalized ink bounds without rearranging pixels. Advance and ink metrics may retain native NaN or infinity; callers must omit non-finite final quads before constructing portable geometry. Finite bounds remain normalized, while offsets stay finite and non-negative. Values are safe to retain after their engine and native face close.
Throws
when finite ink bounds are reversed, offsets are invalid, an image is empty, or an oversized-raster marker is inconsistent.
Constructors
Creates a glyph with explicit source orientation and no deferred atlas rejection. Inputs, detached ownership, and validation follow the primary constructor.
Creates a glyph whose source coordinates increase along both normalized ink axes. Inputs, detached ownership, and validation follow the primary constructor.
Properties
extra advance and offset used by bold rendering.
source-channel interpretation.
source-axis directions for normalized ink bounds.
positive measured source dimensions rejected by the native 256-pixel atlas, without allocating their pixels.
horizontal and vertical shadow offset.