Skip to content

cf_text_markup_info_fn

Category: text
GitHub: cute_draw.h


Reports markup information for a text effect.

typedef void (cf_text_markup_info_fn)(const char* text, CF_MarkupInfo info, const CF_TextEffect* fx);
Parameters Description
text The renderable text.
info Description of the markup for this text effect.
fx The CF_TextEffect instance used for rendering, containing markup metadata. See remarks for details.

Remarks

This callback is invoked once per markup within the renderable text. If you wish to fetch any of the markup metadata you may use cf_text_effect_get_number, cf_text_effect_get_color, or cf_text_effect_get_string by passing in the fx pointer to each.

CF_TextEffect
CF_MarkupInfo
cf_text_get_markup_info