code wiki / (root) / nx_doc_layout_test.nx

nx_doc_layout_test.nx

buildroot/runtime/nx_doc_layout_test.nx

3599 B91 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_layout_test.nx -- gate for the grayscale document layout engine. Unique exit codes per invariant: 1x blit 'A' scale 1 -> every pixel black iff the font glyph bit is set (exact glyph fidelity) 2x blit 'A' scale 2 -> each glyph bit becomes a 2x2 black block 3x render "AB" -> 'B' advances to x=8; inter-glyph gap stays white 4x newline: "A\nB" -> 'B' lands on the second line expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_font8x8.nx nx_doc_layout.nx nx_doc_layout_test.nx

imports: nx_syscalls.nxnx_font8x8.nxnx_doc_layout.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main font8x8_table sys_mmap fg nx_doc_glyph sys_mmap ↻ fillw nx_doc_blit nx_doc_render nx_doc_blit ↻ nx_doc_glyph ↻ t_puts sys_write

structs

none

consts

none

functions

12func t_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
13func fillw(bm: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { bm[i] = 255 as u8; i = i + 1 } return 0 }
called by 1: main
15func main() -> i64