Adjust precision to have correct widths for arial tests documents

This commit is contained in:
Vivien Nicolas 2011-08-30 04:00:03 +02:00
parent 341de1ff42
commit 55d04c0cd9

View File

@ -57,7 +57,7 @@ var stdFontMap = {
};
var FontMeasure = (function FontMeasure() {
var kScalePrecision = 50;
var kScalePrecision = 30;
var ctx = document.createElement('canvas').getContext('2d');
ctx.scale(1 / kScalePrecision, 1);