code wiki / _hdl_build / nx_caption_render_uni.nx

nx_caption_render_uni.nx

buildroot/runtime/_hdl_build/nx_caption_render_uni.nx

3796 B93 linesdepth 4pulls 9 transitivereach 4 importersview sourcekind librarytopic caption
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_css_color_decode.nx nx_paint_solid_rect.nx nx_font8x8.nx nx_font_cyrillic8.nx nx_font_latinext8.nx nx_font_cyrillic_ext8.nx nx_utf8.nx nx_caption_render_uni.nx nx_cyrillic_render_gate.nx nx_live_xlate_call_gate.nx nx_multilang_call_gate.nx nx_multilang_render_gate.nx

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

16func cr_glyph_ptr(ascii: *u8, cyr: *u8, cp: i64) -> *u8
31func cr_blit8(fb: *Framebuffer, x: i64, y: i64, g: *u8, scale: i64, color: *CssColor) -> i64
50func cr_cp_count(text: *u8, len: i64) -> i64
61func nx_caption_render_uni(fb: *Framebuffer, text: *u8, len: i64, scale: i64, bar: *CssColor, fg: *CssColor) -> i64