code wiki / _hdl_build / nx_aatext_proof.nx
nx_aatext_proof.nx
buildroot/runtime/_hdl_build/nx_aatext_proof.nx
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
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
structs
| none |
consts
| none |
functions
| 8 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 11 | func blend(px: *u8, W: i64, H: i64, x: i64, y: i64, r: i64, g: i64, b: i64, a: i64) -> i64 |
| 26 | func 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 |
| 53 | func 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 |
| 91 | func main() -> i64 |