Fix a small bug about how 'W' widths array is parsed

This commit is contained in:
Vivien Nicolas 2011-09-10 14:27:04 +02:00
parent 6329f89982
commit 001ca071f0

5
pdf.js
View File

@ -4212,8 +4212,9 @@ var PartialEvaluator = (function() {
glyphsWidths[start++] = code[j];
start = 0;
} else if (start) {
var width = widths[++i];
for (var j = start; j <= code; j++)
glyphsWidths[j] = widths[++i];
glyphsWidths[j] = width;
start = 0;
} else {
start = code;
@ -4614,7 +4615,7 @@ function ScratchCanvas(width, height) {
}
var CanvasGraphics = (function() {
var kScalePrecision = 50;
var kScalePrecision = 50.0;
var kRasterizerMin = 14;
function constructor(canvasCtx, imageCanvas) {