Skip to content

sokol.sfons #

fn create #

fn create(width int, height int, flags int) &fontstash.Context

create a new Context/font atlas, for rendering glyphs, given its dimensions width and height

fn destroy #

fn destroy(ctx &fontstash.Context)

destroy frees the font stash context and associated resources.

fn flush #

fn flush(ctx &fontstash.Context)

flush uploads the font texture to the GPU and renders any pending text.

fn rgba #

fn rgba(r u8, g u8, b u8, a u8) u32

rgba packs RGBA color components into a single u32 value.