Browse Source

Fix a small mistake for cmap format 0

Vivien Nicolas 14 years ago
parent
commit
ac163da4c8
  1. 4
      fonts.js

4
fonts.js

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

Loading…
Cancel
Save