code wiki / _hdl_build / nx_aa_font_demo.nx
nx_aa_font_demo.nx
buildroot/runtime/_hdl_build/nx_aa_font_demo.nx
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
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
structs
| none |
consts
| 7 | const K_MAGIC_1520: i64 = 1520 |
functions
| 10 | func 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 |
| 21 | func 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 |
| 32 | func 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 |
| 47 | func main() -> i64 |