I'm not sure I understand your question completely, but my guess is that you would like to know where the right edge of your text string is, in the canvas. Assuming that you are not changing the
x and
y offsets of the canvas, the coordinates used by the canvas are just pixels. So to find out the right edge of the string, you only need to find out how wide it is, and then add the initial
x to it.
The function
GetTextDisplaySize can tell you how much space a given string takes, when using a particular font. Just pass it the same
distxt and text_style parameters that you are passing to CanvasDrawTextAtPoint
Luis
NI