Is there a way to set text overlay bounds so text would not go out of video and also split into multiple lines automatically (Compose)?
I am using Media3 Transformer and Exoplayer to make a TextureOverlay of texts so I can export a video with added static text on it. But I could only fix text size using RelativeSizeSpan and change color using ForegroundColorSpan for SpannableString. I couldn’t find a way to set max width or height of the text so it can split it’s text into multiple lines instead single line text going out of the video.