> home > Custom Layer Boundary API

paint_text_color

January 19th 2020
Set the color of a range of characters in a text layout

Signature

C++
void
paint_text_color(Application_Links* app,
                 Text_Layout_ID layout_id,
                 Range_i64 range,
                 ARGB_Color color);

Parameters

app

the standard custom layer context pointer

layout_id

the id of the text layout object

range

the range in byte positions to modify

color

the new color of the text in the range