Fix wrong spacing for format 6

This commit is contained in:
Vivien Nicolas 2011-09-09 14:38:09 +02:00
parent a89e7331f4
commit 841fabd4e9

View File

@ -1033,7 +1033,7 @@ var Font = (function Font() {
var index = firstCode;
for (var j = start; j <= end; j++) {
var code = j - firstCode - 1;
var mapping = encoding[index + 1] || {};
var mapping = encoding[index] || {};
mapping.unicode = glyphs[code].unicode;
encoding[index++] = mapping;
}