HTML canvas displays text slightly different than browsers

I am developing a web application that relies heavily on the fact that you know the exact location x and y of each text character on the canvas. The problem is that different browsers do not transmit to each character on the same scale.

The font that I use, Courier NewI tested in the beta version of Chrome 9, FF4 and the beta version of Chrome 9.

I would like to know if there is anything that can be done. Also, is this related to the way the browser processes the text itself or just the canvas API?

+3
source share
1 answer

. . CSS . , .

0

Source: https://habr.com/ru/post/1791110/


All Articles