Skip to main content

render_text_box

Function render_text_box 

Source
pub fn render_text_box(
    content: &str,
    px_width: u32,
    px_height: u32,
    font_size: f32,
    color: [u8; 4],
    background: Option<[u8; 4]>,
) -> Option<RenderedTextBox>
Expand description

Render a text box to an RGBA bitmap.

Returns None if compilation or rasterization fails.