code wiki / _hdl_build / nx_aatext_proof.nx

nx_aatext_proof.nx

buildroot/runtime/_hdl_build/nx_aatext_proof.nx

4421 B108 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_aatext_proof.nx -- prove GRAYSCALE-AA text from the full-ASCII 8x8 font via coverage supersampling, vs the current 1-bit blocky render. Same string, 3 rows: 8px 1:1, 16px blocky, 16px coverage-AA. If the AA row reads clearly smoother, this is the drop-in quality jump for the browser (full ASCII, no new font).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_font8x8.nx nx_png_write.nx nx_aatext_proof.nx

imports: nx_syscalls.nxnx_font8x8.nxnx_png_write.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap font8x8_table sys_mmap ↻ fg slen draw_blocky blend draw_aa blend ↻ nx_png_write_rgb sys_openat_wr sys_mmap ↻ sys_write pw_chunk pw_u32be sys_mmap ↻ sys_write ↻ sys_write ↻ pw_crc_block pw_adler32 sys_close

structs

none

consts

none

functions

8func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
11func blend(px: *u8, W: i64, H: i64, x: i64, y: i64, r: i64, g: i64, b: i64, a: i64) -> i64
called by 2: draw_blockydraw_aa
26func draw_blocky(px: *u8, W: i64, H: i64, ft8: *u8, x: i64, y: i64, s: *u8, n: i64, blk: i64, r: i64, g: i64, b: i64) -> i64
called by 1: main calls 1: blend
53func draw_aa(px: *u8, W: i64, H: i64, ft8: *u8, x: i64, y: i64, s: *u8, n: i64, psz: i64, adv: i64, r: i64, g: i64, b: i64) -> i64
called by 1: main calls 1: blend
91func main() -> i64