I need to position a string on a canvas.
The end of the string needs to be positioned relative to a mark on the screen.
My conservative thinking would be that I need to determine the width of the string and then draw the string to the left of the mark at x position "mark-width".
So I would need to determine the width of the string, a function I cannot find.
Or is there any other method that makes things easier?
The end of the string needs to be positioned relative to a mark on the screen.
My conservative thinking would be that I need to determine the width of the string and then draw the string to the left of the mark at x position "mark-width".
So I would need to determine the width of the string, a function I cannot find.
Or is there any other method that makes things easier?