code wiki / (root) / nx_nishi_font.nx

nx_nishi_font.nx

buildroot/runtime/nx_nishi_font.nx

2691 B64 linesdepth 3pulls 4 transitivereach 2 importersview sourcekind tooltopic nishi
docsdependenciesstructsconstsfunctions

about

nx_nishi_font.nx -- the SYSCALL-backed u8/PNG path of the sovereign Nishi stroke font. The PURE glyph core (all stroke designs N I S H B R O W E + 0-9 + the WASM-safe i64-framebuffer blit) now lives in the import-free nx_nishi_font_core.nx; this file adds nf_render_glyph (black AA ink onto a WHITE RGB u8 buffer, allocates its own supersample mask via sys_mmap) + nf_draw_text (u8 string), used by the demo + the gate. Splitting the pure core out lets the browser arcade (nx_wasm_arcade) reuse the EXACT glyphs with no syscalls. All integer (no float). license_tier: ORIGINAL

dependencies 3 imports · 2 importers

nx_syscalls.nx nx_png_write.nx nx_nishi_font_core.nx nx_nishi_font.nx nx_nishi_font_demo.nx nx_nishi_font_gate.nx

imports: nx_syscalls.nxnx_png_write.nxnx_nishi_font_core.nx

imported by: nx_nishi_font_demo.nxnx_nishi_font_gate.nx

structs

none

consts

none

functions

12func nf_render_glyph(rgb: *u8, iw: i64, ih: i64, ox: i64, oy: i64, ch: i64, gid: i64) -> i64
called by 2: nf_draw_textmain calls 2: sys_mmapnf_glyph
52func nf_draw_text(rgb: *u8, iw: i64, ih: i64, ox: i64, oy: i64, ch: i64, s: *u8, slen: i64) -> i64
called by 1: main calls 1: nf_render_glyph
64func main() -> i64 { return 0 }