code wiki / (root) / nx_font_legib_census.nx

nx_font_legib_census.nx

buildroot/runtime/nx_font_legib_census.nx

4757 B54 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic font
docsdependenciesstructsconstsfunctions

about

nx_font_legib_census.nx -- what S-CLASS-EXCEED means for LEGIBILITY + ACCESSIBILITY (ADA / dyslexia / low-vision) + BEAUTY, grounded in the Nishi researcher's leg_*.raw (Atkinson Hyperlegible [Braille Institute, low-vision, character disambiguation], Legibility, Readability, Dyslexia, X-height, Frutiger, Verdana). Honest grade of the CURRENT geometric A-Z (nx_font_latin) -- which the operator correctly called blocky/unpolished. ABSENT cells = the redesign targets. GREEN = honest map (not a win). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_font_legib_census.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sw sys_write row sw ↻ gname sw ↻ sn sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

8const G_ABSENT: i64=0
9const G_PARTIAL: i64=1
10const G_PRESENT: i64=2

functions

12func sw(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 3: gnamerowmain calls 1: sys_write
13func sn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
14func gname(g: i64) -> i64 { if g==0 { sw("ABSENT " as *u8) } if g==1 { sw("PARTIAL" as *u8) } if g==2 { sw("PRESENT" as *u8) } return 0 }
called by 1: row calls 1: sw
15func row(p: *u8, cap: *u8, g: i64, principle: *u8, tot: *i64) -> i64
called by 1: main calls 2: swgname
20func main() -> i64