MinecraftFontCompatibility
Immutable resource-format and rasterization capabilities selected by the caller's release adapter. No game version is inferred from names or runtime strings.
Constructors
Creates the earlier capability contract without whole-line prepared bounds rejection. Inputs and immutable ownership follow the primary constructor.
Creates the earlier capability contract without baked-metric replacement or saturating width rounding. Inputs and immutable ownership follow the primary constructor.
Properties
whether an atlas-rejected glyph uses the missing glyph's advance as well as its pixels.
whether Unihex advance divides its cropped width as a float instead of truncating integer division.
whether each glyph's shadow is drawn immediately before its foreground.
whether overlay min_format and max_format fields are supported.
resource-pack format used to select declared overlays.
minor pack-format revision used by minor-aware overlays.
whether resource-pack overlays are interpreted.
whether drawing applies the native whole-line raw ink bounds rejection before emitting glyphs.
whether font provider filters are interpreted.
exact TrueType rasterizer family supplied by the backend.
whether malformed overlay metadata excludes its entire selected source instead of ignoring the overlay section.
whether text width rounds in double precision before the saturating integer conversion.
Functions
Converts an accumulated native advance to the selected release's signed text width without clamping it to layout geometry. The pure operation accepts every floating-point value and retains native overflow behavior. NaN becomes zero and negative infinity becomes Int.MIN_VALUE in both modes. Positive infinity becomes Int.MAX_VALUE with MinecraftFontCompatibility.saturatingCeil, or Int.MIN_VALUE through the earlier increment overflow.