How can I create a Text that is filled in Green colour with a 1px stroke in Red around the letters? I tried drawStyle = Stroke but this seems to remove the inner Text fill.
Jan
01/17/2024, 9:44 AM
Random image found on the internet to illustrate the idea:
z
Zach Klippenstein (he/him) [MOD]
01/17/2024, 1:55 PM
Layer them, or you can use TextMeasurer to draw yourself
j
Jan
01/18/2024, 6:26 AM
> TextMeasurer to draw yourself […]
By layering you mean add 2 Text’s on top of each other, where the top one has the outline and the bottom text does the inside fill? I was thinking of that but that doesn’t feel right / I was expecting that there is some kind of api for that. There isn’t right?
> […] you can use TextMeasurer to draw yourself
Interesting 🤔 Any chance you have an example / link for that?
z
Zach Klippenstein (he/him) [MOD]
01/19/2024, 7:19 PM
not specifically, but Romain gave a talk a year or two ago about drawing custom text effects, i’ll try to find it…