Draw curve with DrawLine method

new name is TestShape
https://documentation.xojo.com/api/graphics/textshape.html
https://documentation.xojo.com/api/data_types/string.htmlShape
could be drawn with .DrawObject
means you create that TextShape object and paint it with g.DrawObject(shape) in your canvas paint event.