code wiki / _hdl_build / nx_caption_render_uni.nx
nx_caption_render_uni.nx
buildroot/runtime/_hdl_build/nx_caption_render_uni.nx
about
nx_caption_render_uni.nx -- UNICODE-aware caption renderer (Latin + Cyrillic) onto a video FRAME (RGBA
Framebuffer). Decodes UTF-8 (nx_utf8) per codepoint and dispatches the 8x8 glyph: ASCII printable from
nx_font8x8, Cyrillic from nx_font_cyrillic8 (lowercase folded to uppercase). Draws a bottom bar + centered
text at integer scale, NO float. This is what makes the Belarus girl's caption render in NATIVE Cyrillic and
the Texas boy's in Latin -- the same organ, dispatched by script. license_tier: ORIGINAL
dependencies 8 imports · 4 importers
imports: nx_syscalls.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_font8x8.nxnx_font_cyrillic8.nxnx_font_latinext8.nxnx_font_cyrillic_ext8.nxnx_utf8.nx
imported by: nx_cyrillic_render_gate.nxnx_live_xlate_call_gate.nxnx_multilang_call_gate.nxnx_multilang_render_gate.nx
structs
| none |
consts
| none |
functions
| 16 | func cr_glyph_ptr(ascii: *u8, cyr: *u8, cp: i64) -> *u8 |
| 31 | func cr_blit8(fb: *Framebuffer, x: i64, y: i64, g: *u8, scale: i64, color: *CssColor) -> i64 |
| 50 | func cr_cp_count(text: *u8, len: i64) -> i64 |
| 61 | func nx_caption_render_uni(fb: *Framebuffer, text: *u8, len: i64, scale: i64, bar: *CssColor, fg: *CssColor) -> i64 called by 4: mainmainmainmain calls 8: nx_paint_solid_rectfont8x8_tablecyr8_tablecr_cp_countsys_mmaputf8_decode_one+2 |