Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Get coordinates from character on the canvas

Hello :)

I am trying to get the coordinates of a character shown on a canvas. The experiment displays a line sentence that varies in length every time a new one is shown on the canvas. So, is there any precise way to get the (x, y) coordinates of the last character?

I have implemented an estimation that multiplies the size of a character by the length of the sentence (number of characters). However, on some occasions, it is not precise enough.

Any solutions?

Comments

Sign In or Register to comment.