nx.js
Functions

consoleFontAvailable

consoleFontAvailable(): boolean

Register the bundled Geist Mono font (from the nx.js NRO's own RomFS) into the canvas font set. Returns false when the font can't be loaded — which is the signal that the canvas-backed console is unavailable (e.g. the host test binary, which has no nxjs: mount and no display), so callers fall back to the native libnx console ($.print). The result is cached (incl. failure) so the per-log check is cheap and doesn't re-readFileSync on the host.

Returns

boolean

On this page