Fix wrong spacing for format 6
This commit is contained in:
parent
a89e7331f4
commit
841fabd4e9
2
fonts.js
2
fonts.js
@ -1033,7 +1033,7 @@ var Font = (function Font() {
|
|||||||
var index = firstCode;
|
var index = firstCode;
|
||||||
for (var j = start; j <= end; j++) {
|
for (var j = start; j <= end; j++) {
|
||||||
var code = j - firstCode - 1;
|
var code = j - firstCode - 1;
|
||||||
var mapping = encoding[index + 1] || {};
|
var mapping = encoding[index] || {};
|
||||||
mapping.unicode = glyphs[code].unicode;
|
mapping.unicode = glyphs[code].unicode;
|
||||||
encoding[index++] = mapping;
|
encoding[index++] = mapping;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user