Ashet OS

syscall: ashet.draw.measure_text_size

Documentation

Measures the size of a text string.

Note:

This function accepts strings using the LF line separator and will return the height of all lines and the width of the longest line.

Inputs

font: Font
text: str

Outputs

size: Size

Errors

InvalidHandle