int ctl_gfx_draw_stringn(int x,
                         int y,
                         const char *text,
                         size_t len);

ctl_gfx_draw_stringn draws the string text at coordinate (x, y) using the active font and text color. At most len characters are written. Any zero character within the first len characters will terminate drawing early.

Return Value

The value returned is the number of pixels taken by the string text.