MinecraftFontLoadLimits
Immutable input and allocation ceilings for one synchronous font snapshot and its image decoders. Counts include rejected records already processed, and byte ceilings describe payload rather than total JVM heap usage. Defaults accommodate the measured vanilla resources of every supported release; callers may choose tighter or larger finite budgets. No source, stream, mutable counter, or native resource is retained here, so limits may be shared across threads.
Throws
when a ceiling is negative or a depth or path ceiling is zero.
Constructors
Properties
maximum compressed ZIP or JAR file size before opening its directory.
maximum bytes returned for one encoded asset, also bounding all concurrently retained native face input payloads in one engine.
independent input ceiling for a bitmap provider's decoded sheet, unaffected by engine cache settings.
aggregate expanded Unihex and PNG image-data bytes plus PNG four-byte pixel payloads examined by a snapshot.
maximum expanded bytes in one Unihex ZIP entry or PNG image-data stream, including ignored ZIP entries.
maximum bytes in a font document, pack metadata, or asset index.
aggregate source paths and nested ZIP entries processed by one snapshot, including rejected sources.
total font document locations accepted across the source stack.
aggregate retained Unihex row payload, charged as sixteen Long values per record before allocation.
maximum four-byte pixel payload of one decoded sheet or glyph image.
maximum width or height before allocating a decoded sheet or glyph image.
aggregate encoded bytes read while loading a snapshot or copying an in-memory source.
maximum JSON container nesting before tree parsing.
maximum JSON tokens examined in one document before tree parsing.
maximum UTF-16 length of one source-relative path or archive entry name.
total declared provider records processed across font documents.
maximum active font-reference recursion depth.
aggregate provider entries produced by reference expansion.
entries examined in one source or nested Unihex archive, including archive directories.
source count accepted by one snapshot invocation.
maximum distinct resource-and-settings descriptors examined by a snapshot, independent of provider skips and filters.
aggregate encoded face input charged once for every distinct resource-and-settings descriptor, before native work.
Functions
Checks recognizable PNG dimensions and inflates image data into a fixed scratch buffer before native decoding. No decoded pixels are retained, and malformed PNG data or excessive expansion fails before native allocation. Other encoded formats return false and remain subject to a decoder's own format and allocation contract.
Applies generic image safety and the independent bitmap-sheet input ceiling before allocating a provider sheet. The default sheet ceiling allows the default raster cache to retain a sheet and its largest copied glyph together. Raising this input ceiling may cause repeated decoding under a smaller cache, but never changes provider selection between cache modes.
Rejects invalid or oversized image dimensions before native decoding or pixel-array allocation. Multiplication uses Long arithmetic; the four-byte payload must fit an Int-indexed native byte buffer even with larger custom limits.