code wiki / _hdl_build / nx_ttf_fontlib_gate.nx

nx_ttf_fontlib_gate.nx

buildroot/runtime/_hdl_build/nx_ttf_fontlib_gate.nx

6694 B113 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic ttf
docsdependenciesstructsconstsfunctions

about

nx_ttf_fontlib_gate.nx -- gate for the sovereign TTF font ENGINE LIBRARY (the browser's text renderer). Proves: real load of our emitted nishi_sans.ttf; glyph rasterization with genuine ANTI-ALIASING (intermediate coverage levels -- the visual difference vs the 1-bit 8x8 bitmap); REAL proportional metrics from hmtx ('i' narrower than 'm'); FULL-ASCII coverage incl the NEW punctuation; the per-(char,size) cache returns the identical record; the RGBA framebuffer alpha-blend puts ink on the canvas. NEG: a missing font file refuses to load; an out-of-range char yields no glyph. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_ttf_fontlib.nx nx_ttf_fontlib_gate.nx

imports: nx_ttf_fontlib.nx

imported by: nobody (leaf or entry point)

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

main g_puts tf_load sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close tf_find_table tf_rd16 tf_rd32 tf_rd16s tf_rd16 ↻ tf_rd32 ↻ tf_rd16 ↻ tf_glyph tf_cmap_lookup tf_rd16 ↻ tf_rd16s ↻ tf_rd16 ↻ sys_mmap ↻ tf_glyph_edges tf_rd16 ↻ tf_rd32 ↻ tf_rd16s ↻ sys_mmap ↻ tf_bit tf_inside g_num tf_char_adv tf_glyph ↻ nx_framebuffer_init tf_draw_text tf_glyph ↻

structs

none

consts

none

functions

10func g_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
11func g_num(v: i64) -> i64 { let b: *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{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main
13func main() -> i64