nx_doc_layout_test.nx
buildroot/runtime/nx_doc_layout_test.nx
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
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
structs
| none |
consts
| none |
functions
| 12 | func 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 } |
| 13 | func 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 |
| 15 | func main() -> i64 |