code wiki / _hdl_build / nx_aa_font_demo.nx

nx_aa_font_demo.nx

buildroot/runtime/_hdl_build/nx_aa_font_demo.nx

4250 B100 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind sketch/demotopic aa
docsdependenciesstructsconstsfunctions

about

nx_aa_font_demo.nx -- R2 start: OUR OWN sovereign vector font (filled glyph outlines), rendered by the AA rasterizer. Designs N/E/O from primitives (rect stems, a 12-gon ring bowl, a parallelogram diagonal) and renders "NEON" anti-aliased -> _offc/nx_aa_neon.png. Proves a hand-designed sovereign font renders SMOOTH text (no bitmap, no GDI). Coords are grid (ss=4) units, y-down. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_aa_raster.nx nx_png_write.nx nx_aa_font_demo.nx

imports: nx_aa_raster.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 emit_rect emit_quad emit_circle aa_render aa_inside aa_blit 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

7const K_MAGIC_1520: i64 = 1520

functions

10func emit_rect(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, x0: i64, y0: i64, x1: i64, y1: i64) -> i64
called by 1: main
21func emit_quad(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, ax: i64, ay: i64, bx: i64, by: i64, cx: i64, cy: i64, dx: i64, dy: i64) -> i64
called by 1: main
32func emit_circle(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, cs: *i64, sn: *i64, cx: i64, cy: i64, r: i64, rev: i64) -> i64
called by 1: main
47func main() -> i64