Cannot render svg file correctly, but can android ...
# compose-desktop
k
Cannot render svg file correctly, but can android xml file. The xml was converted from svg by Android Studio. Is this a bug?
Copy code
val WordNotFoundLRes = painterResource("wordnotfound_l.svg")

Image(
    painter = WordNotFoundLRes,
    contentDescription = "Word Not Found",
    colorFilter = null
)
1
i
It is a bug in skia
Workaround to this bug - is to inline all classes into
style
attribute
1
k
Thank you.😄