⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

draw_string_into_buffer

Function draw_string_into_buffer 

Source
pub fn draw_string_into_buffer(
    buf: &mut [u8],
    buf_width: usize,
    text: &[u8],
    px: usize,
    py: usize,
    color: u32,
)
Expand description

Draw a string into a BGRA pixel buffer at (px, py) with the given color.

Uses the 8x16 VGA font. Characters are spaced 8 pixels apart horizontally. CJK wide characters (detected via cjk::char_width) advance 16px instead of 8px.