Adjust precision to have correct widths for arial tests documents
This commit is contained in:
parent
341de1ff42
commit
55d04c0cd9
2
fonts.js
2
fonts.js
@ -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…
x
Reference in New Issue
Block a user