code wiki / _hdl_build / nx_glyph_word.nx

nx_glyph_word.nx

buildroot/runtime/_hdl_build/nx_glyph_word.nx

3421 B70 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tooltopic glyph
docsdependenciesstructsconstsfunctions

about

nx_glyph_word.nx -- RUNG 1 proof: render "nishi" (lowercase, the brand) with the STROKE PEN. Each letter is just centerline polylines + a width -> the n/h arches and the s-spine (the HARD curvy bits) are trivial. Renders AA -> _offc/nx_aa_nishi.png. This is the builder unit that scales to kanji (kanji strokes are the same).

dependencies 3 imports · 0 importers

nx_glyph_stroke.nx nx_aa_raster.nx nx_png_write.nx nx_glyph_word.nx

imports: nx_glyph_stroke.nxnx_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 gs_init_trig put_stroke gs_stroke gs_seg gs_isqrt vm_isqrt gs_disc _gs_rnd1000 gs_disc ↻ aa_render aa_inside aa_blit nx_png_write_rgb sys_openat_wr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_write ↻ pw_chunk pw_u32be sys_mmap ↻ sys_write ↻ sys_write ↻ pw_crc_block dfe_compress sys_mmap_try sys_munmap_direct

structs

none

consts

7const K_MAGIC_8192: i64 = 8192
8const K_MAGIC_1024: i64 = 1024

functions

11func put_stroke(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, cs: *i64, sn: *i64, ptsx: *i64, ptsy: *i64, n: i64, w: i64) -> i64
called by 1: main calls 1: gs_stroke
16func main() -> i64