Simp module

get_character_width_in_pixels

procedure · 1 overloadSource

The width in pixels of the one UTF-8 character at utf8. A byte sequence that is not valid counts as the font's unknown character.

get_character_width_in_pixels :: (
    font: *Dynamic_Font,
    utf8: *u8,
    effect_flags: Font_Effects
) -> u32

The width in pixels of the one UTF-8 character at utf8. A byte sequence that is not valid counts as the font's unknown character.

Parameters

utf8: *u8
the first byte of the character. A zero byte or null gives 0.
effect_flags: Font_Effects
Font_Effects flags.

Returns

u32

See also