https://kotlinlang.org logo
Title
a

Ankit Shah

01/13/2022, 1:04 PM
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1588253042070100 This is a 2 years old issue. I am stuck in the same. Does anyone have solution to this?
there is a stack overflow answer but it does not provide flexibility to modify or style the text https://stackoverflow.com/questions/66958260/how-to-outline-text-in-jetpack-compose
l

len

01/13/2022, 1:29 PM
I didn't notice it was that long ago 😂
😆 1
y

yschimke

01/13/2022, 3:08 PM
That answer seems very flexible since you can do anything you want with that paint. What would you like to modify in the text, or what other style would you like?
a

Ankit Shah

01/13/2022, 3:15 PM
Thanks @yschimke I will try with that solution
@len did you find any solution for that without using paint?
l

len

01/13/2022, 4:02 PM
I didn't try any solution yet so I can't help you
c

Chris Sinco [G]

01/13/2022, 8:27 PM
I’d imagine that Text under the hood is using Canvas, so I guess you could always start with your own function that passes styles in. Not sure also if this is a known feature request. @Siyamed can probably comment more
s

Siyamed

01/13/2022, 8:29 PM
yes b/187839528 b/190787898 (and also b/155421273 b/206701013) are known features that we want to implement.
🙏 1
please upvote (+1) for the feature, it helps us prioritize
the original question is b/155421273
👍 1