KingPsychopath / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

measureText error when changing Context Font #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Assign a font to the 2D context of the canvas. Ex. '20px Tahoma' 
2. Get the text width for a given string using measureText('somestring');
3. Assign a new font to the 2D context. Ex. '40px Tahoma'
4. Get the text width for the same string using measureText('somestring');

The result will give you exactly the same width.

Is that normal? Is that a known problem?

Thanks!

Original issue reported on code.google.com by alexandr...@gmail.com on 7 Dec 2010 at 6:51