Simp module

append_prepare_text

proceduresince 0.28.0Source

Adds the glyphs of s to the run; byte offsets count from the start of this piece.

Example
font := load_font("", "Roboto-Regular.ttf", 24);
begin_prepare_text(font);
append_prepare_text(font, "Hello, ");
append_prepare_text(font, "world");
end_prepare_text(font);

This one is only checked to compile, not run.

append_prepare_text :: (
    font: *Dynamic_Font,
    s: string,
    effect_flags: Font_Effects = 0
)

Parameters

s: string
effect_flags: Font_Effects = 0

See also