code wiki / _hdl_build / nx_font_specimen.nx

nx_font_specimen.nx

buildroot/runtime/_hdl_build/nx_font_specimen.nx

6142 B119 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic font
docsdependenciesstructsconstsfunctions

about

nx_font_specimen.nx -- one comprehensive SPECIMEN SHEET of the sovereign parametric typeface, rendered through the real engine so the results can be EYEBALLED: title + all 6 styles (pangram each) + the full alphabet in Regular and Geometric + a body paragraph in each (the real reading test). One tall PNG. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_font.nx nx_aa_raster.nx nx_png_write.nx nx_font_specimen.nx

imports: nx_font.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 sp_puts font_spec_reset sp_line sp_slen font_trig_init font_text font_sp_shift_disp font_sp_shift_geo font_sp_shift font_ws font_wdth font_emit font_emit_geo font_weight font_mod fe_ring fe_stroke geo_arc fe_stroke ↻ fe_stroke ↻ geo_earc fe_stroke ↻ font_weight ↻ font_mod ↻ font_ws ↻ font_wdth ↻ font_slant fe_stroke ↻ gs_disc fe_ring ↻ font_adv font_adv_em font_adv_em_base font_adv_em_base_geo font_ws ↻ font_wdth ↻ aa_render aa_inside aa_blit

structs

none

consts

8const K_MAGIC_400000: i64 = 400000
9const K_MAGIC_40000: i64 = 40000
14const CW: i64 = 1560
15const CH: i64 = 2260

functions

11func sp_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: sp_line
12func sp_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main
18func sp_line(canvas: *u8, x: i64, ytop: i64, text: *u8, empx: i64, col: i64) -> i64
44func main() -> i64