Fix a small mistake for cmap format 0

This commit is contained in:
Vivien Nicolas 2011-09-10 20:02:42 +02:00
parent cf93f23178
commit ac163da4c8

View File

@ -934,7 +934,9 @@ var Font = (function Font() {
deltas.push(index);
var unicode = j + kCmapGlyphOffset;
encoding[j].unicode = unicode;
var mapping = encoding[j] || {};
mapping.unicode = unicode;
encoding[j] = mapping;
glyphs.push({ unicode: unicode });
}
}