code wiki / (root) / nx_doc_layout.nx

nx_doc_layout.nx

buildroot/runtime/nx_doc_layout.nx

4568 B101 linesdepth 3pulls 3 transitivereach 8 importersview sourcekind librarytopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_layout.nx -- document layout: text -> 8-bit GRAYSCALE page bitmap (front half of "print real documents"). Distinct from nx_text_render (that targets the OS 1bpp framebuffer). Blits scaled 8x8 glyphs from nx_font8x8's font8x8_table() with margins, monospace advance, right-margin wrap, and newline. Output flows into nx_urf -> Print-Job -> printer. PURE (writes a caller bitmap) -> never-brick. Sovereign. genealogy_id: project-printer-management-ipp-sclass-2026-06-20 ; license_tier: ORIGINAL

dependencies 1 imports · 8 importers

nx_font8x8.nx nx_doc_layout.nx nx_arousal_body.nx nx_arousal_mesh.nx nx_arousal_render.nx nx_doc_layout_test.nx nx_doc_print.nx nx_doc_to_urf.nx nx_doc_to_urf_test.nx nx_img_print.nx

imports: nx_font8x8.nx

imported by: nx_arousal_body.nxnx_arousal_mesh.nxnx_arousal_render.nxnx_doc_layout_test.nxnx_doc_print.nxnx_doc_to_urf.nxnx_doc_to_urf_test.nxnx_img_print.nx

structs

none

consts

none

functions

10func nx_doc_glyph(table: *u8, ch: i64) -> *u8
17func nx_doc_blit(bm: *u8, W: i64, H: i64, gx: i64, gy: i64, glyph: *u8, scale: i64) -> i64
called by 2: nx_doc_rendermain
49func nx_doc_render(bm: *u8, W: i64, H: i64, table: *u8, text: *u8, scale: i64,