Skip to content

cf_text_height

Category: text
GitHub: cute_draw.h


Returns the height of a text given the currently pushed font.

float cf_text_height(const char* text, int num_chars_to_draw);
Parameters Description
text The text considered for rendering.
num_chars_to_draw The number of characters to draw text. Use -1 to draw the whole string.

cf_make_font
cf_text_width
cf_text_size
cf_draw_text