MinecraftFontCompatibility

data class MinecraftFontCompatibility(val rasterizer: MinecraftTrueTypeRasterizer, val packFormat: Int, val providerFilters: Boolean = true, val packOverlays: Boolean = true, val packFormatMinor: Int = 0, val minorPackFormats: Boolean = true, val interleavedShadows: Boolean = true, val fractionalUnihexAdvance: Boolean = false, val rejectMalformedOverlayMetadata: Boolean = false, val bakedGlyphMetrics: Boolean = false, val saturatingCeil: Boolean = false, val preparedTextBounds: Boolean = false)(source)

Immutable resource-format and rasterization capabilities selected by the caller's release adapter. No game version is inferred from names or runtime strings.

Constructors

Link copied to clipboard
constructor(rasterizer: MinecraftTrueTypeRasterizer, packFormat: Int, providerFilters: Boolean = true, packOverlays: Boolean = true, packFormatMinor: Int = 0, minorPackFormats: Boolean = true, interleavedShadows: Boolean = true, fractionalUnihexAdvance: Boolean = false, rejectMalformedOverlayMetadata: Boolean = false, bakedGlyphMetrics: Boolean = false, saturatingCeil: Boolean = false, preparedTextBounds: Boolean = false)
constructor(rasterizer: MinecraftTrueTypeRasterizer, packFormat: Int, providerFilters: Boolean = true, packOverlays: Boolean = true, packFormatMinor: Int = 0, minorPackFormats: Boolean = true, interleavedShadows: Boolean = true, fractionalUnihexAdvance: Boolean = false, rejectMalformedOverlayMetadata: Boolean = false, bakedGlyphMetrics: Boolean = false, saturatingCeil: Boolean = false)

Creates the earlier capability contract without whole-line prepared bounds rejection. Inputs and immutable ownership follow the primary constructor.

constructor(rasterizer: MinecraftTrueTypeRasterizer, packFormat: Int, providerFilters: Boolean = true, packOverlays: Boolean = true, packFormatMinor: Int = 0, minorPackFormats: Boolean = true, interleavedShadows: Boolean = true, fractionalUnihexAdvance: Boolean = false, rejectMalformedOverlayMetadata: Boolean = false)

Creates the earlier capability contract without baked-metric replacement or saturating width rounding. Inputs and immutable ownership follow the primary constructor.

Properties

Link copied to clipboard

whether an atlas-rejected glyph uses the missing glyph's advance as well as its pixels.

Link copied to clipboard

whether Unihex advance divides its cropped width as a float instead of truncating integer division.

Link copied to clipboard

whether each glyph's shadow is drawn immediately before its foreground.

Link copied to clipboard

whether overlay min_format and max_format fields are supported.

Link copied to clipboard

resource-pack format used to select declared overlays.

Link copied to clipboard

minor pack-format revision used by minor-aware overlays.

Link copied to clipboard

whether resource-pack overlays are interpreted.

Link copied to clipboard

whether drawing applies the native whole-line raw ink bounds rejection before emitting glyphs.

Link copied to clipboard

whether font provider filters are interpreted.

Link copied to clipboard

exact TrueType rasterizer family supplied by the backend.

Link copied to clipboard

whether malformed overlay metadata excludes its entire selected source instead of ignoring the overlay section.

Link copied to clipboard

whether text width rounds in double precision before the saturating integer conversion.

Functions

Link copied to clipboard
fun roundedWidth(advance: Float): Int

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.