]> git.parisson.com Git - pdf.js.git/commitdiff
Adjust precision to have correct widths for arial tests documents
authorVivien Nicolas <21@vingtetun.org>
Tue, 30 Aug 2011 02:00:03 +0000 (04:00 +0200)
committerVivien Nicolas <21@vingtetun.org>
Tue, 30 Aug 2011 02:00:03 +0000 (04:00 +0200)
fonts.js

index 39936d43264e263a3fcf4c25a9ada500e07b8709..4aa2fb1423edcb9289cc35111b3b265fcfb71dc2 100755 (executable)
--- a/fonts.js
+++ b/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);