Browse Source

Adjust precision to have correct widths for arial tests documents

Vivien Nicolas 14 years ago
parent
commit
55d04c0cd9
  1. 2
      fonts.js

2
fonts.js

@ -57,7 +57,7 @@ var stdFontMap = { @@ -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);

Loading…
Cancel
Save