MinecraftFontEngine
constructor(snapshot: MinecraftFontSnapshot, backendFactory: MinecraftFontBackendFactory, cacheEntries: Int = 4096, cacheBytes: Long = 16L * 1024L * 1024L, maxFaces: Int = 16)(source)
Parameters
snapshot
immutable font definitions and resource bytes, safely reusable by other engines.
backendFactory
creates the independently owned CPU backend.
cacheEntries
maximum combined cached glyph or cell results and decoded bitmap sheets; zero disables raster caching.
cacheBytes
maximum retained raster pixel bytes; zero disables pixel caching.
maxFaces
maximum concurrently retained native faces, from 1 through 16.