Hey everyone! I'm using `Canvas` and I'm trying t...
# compose
a
Hey everyone! I'm using 
Canvas
 and I'm trying to draw text inside a "balloon", but 
DrawScope
 doesn't seem to have a 
drawText
 method, the only way to draw text seems to be:
Copy code
drawIntoCanvas { 
    it.nativeCanvas.drawText(...)
}
Which is buried deep enough that it's probably bad to use. What are the alternatives to this? I also need to have the dimensions of the drawn text in order to wrap the "balloon" around it.
a
That's what I needed, thank you!
d
Ah nice, didn't know when they added that.
p
I do not get it. Hos this help in this situation? Could you share some code example with MultiParagraph, so I get for what i can use it? 🙂
Additionally, I have created the feature request for drawText function for @Composable Canvas: https://issuetracker.google.com/issues/190787898
d
Did you see the method called
paint
p
Could you share a documentation link? I do not know to which paint you are reffering to. 🙂
p
Thanks for sharing. I will have a look