Skip to content

CF_MarkupInfo

Category: text
GitHub: cute_draw.h


Info describing a markup inside of a string rendered with text effects.

Struct Members Description
const char* effect_name The name of the text effect. These would be effect names like fade or anything you have registered via cf_text_effect_register.
int start_glyph_index The index of the first glyph this markup applies to. Use this index on the text string provided in the cf_text_markup_info_fn callback.
int glyph_count The number of glyphs this markup applies to.
int bounds_count The number of CF_Aabb's in bounds.
CF_Aabb* bounds An arry of CF_Aabb's, one per line the text string provided in the cf_text_markup_info_fn callback.

Remarks

This struct describes the markup information for each text effect within a renderable string.

CF_TextEffect
cf_text_get_markup_info
cf_text_markup_info_fn