How can I create a Text that is filled in Green co...
# compose-android
j
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.
Random image found on the internet to illustrate the idea:
z
Layer them, or you can use TextMeasurer to draw yourself
j
> 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
not specifically, but Romain gave a talk a year or two ago about drawing custom text effects, i’ll try to find it…