> home > Custom Layer Boundary API

paint_text_color

September 8th 2024
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