nx_nishi_font.nx
buildroot/runtime/nx_nishi_font.nx
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
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
| 12 | func nf_render_glyph(rgb: *u8, iw: i64, ih: i64, ox: i64, oy: i64, ch: i64, gid: i64) -> i64 |
| 52 | func nf_draw_text(rgb: *u8, iw: i64, ih: i64, ox: i64, oy: i64, ch: i64, s: *u8, slen: i64) -> i64 |
| 64 | func main() -> i64 { return 0 } |