Mark
12/28/2023, 4:16 AMdrawText
on the Canvas
interface?jw
12/28/2023, 4:27 AMMark
12/28/2023, 4:40 AMdrawText
extension function on DrawScope
so was just wondering why there wouldn’t also be a Canvas.drawText
extension function.jw
12/28/2023, 4:54 AMMark
12/28/2023, 3:07 PMCanvas
or DrawScope
? It’s certainly a lot easier to do the latter, since I no longer need to deal with Paint
(and especially not Android-only TextPaint
) and no longer need to dip into Canvas.nativeCanvas
. OTOH, for the caller, DrawScope
, I guess, is more tricky to set up being a higher level of abstraction. BTW, I don’t need to do things like text wrapping. The only text is always one or two digits placed in a circle.Zach Klippenstein (he/him) [MOD]
01/02/2024, 7:30 PM