code wiki / _hdl_build / nx_glyph_compose.nx
nx_glyph_compose.nx
buildroot/runtime/_hdl_build/nx_glyph_compose.nx
about
nx_glyph_compose.nx -- RUNG 2+3 of the sovereign font BUILDER: COMPONENTS + COMPOSITION (the kanji-scaling
heart). A COMPONENT (radical) is a stroke group defined ONCE in a 0..1000 em box; a glyph is a COMPOSITION
of that component placed by a transform (offset+scale). Proof: define 木 (tree) once, render it standalone
AND compose 林 (forest) = 木 placed LEFT + 木 placed RIGHT -- the SAME radical reused -> adding a script is
DATA (more components + compositions), not a new engine. Renders AA -> _offc/nx_aa_kanji.png. ORIGINAL.
dependencies 3 imports · 0 importers
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
structs
| none |
consts
| 9 | const K_MAGIC_1080: i64 = 1080 |
| 10 | const K_MAGIC_8192: i64 = 8192 |
| 11 | const K_MAGIC_1024: i64 = 1024 |
functions
| 15 | func put_tstroke(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, cs: *i64, sn: *i64, |
| 30 | func comp_tree(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, np: *i64, nc: *i64, cs: *i64, sn: *i64, |
| 46 | func main() -> i64 |