Skip to content

cf_push_text_stroke

Category: text
GitHub: cute_draw.h


Sets a stroke thickness for text, rendering glyph outlines instead of fills.

void cf_push_text_stroke(float stroke);
Parameters Description
stroke Stroke thickness in world units. 0 (the default) renders filled glyphs.

Remarks

A nonzero stroke implies curve rendering for that text, even if cf_push_text_curves pushed false. Blurred text (cf_push_font_blur) cannot stroke -- blur wins.

cf_push_text_curves
cf_peek_text_stroke
cf_pop_text_stroke