Hello, I have question about text outline. I want to create text with for example black color outline and red fill color (see attachment). I can use code as below but in that way I can set only outline color and fill color is transparent / none. I'm now using ugly workaround with one Text red and second Text larger with black outline drawn on the same place. This is not working correctly on some display densities. Why is this important? It's used for example for better readability of subtitles on different backgrounds. Thanks
Text(
text = "Sample",
color = "<only one color>"
style = TextStyle.Default.copy(
fontSize = 64.sp,
drawStyle = Stroke(
miter = 10f,
width = 5f,
join = StrokeJoin.Round
)
)
)