Skip to content

Commit

Permalink
Fixes type2 fonts conversion (mozilla#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
notmasteryet committed Jan 16, 2012
1 parent a908827 commit 2927f5e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/fonts.js
Expand Up @@ -3324,15 +3324,9 @@ var Type2CFF = (function Type2CFFClosure() {
inverseEncoding[encoding[charcode]] = charcode | 0;
for (var i = 0, ii = charsets.length; i < ii; i++) {
var glyph = charsets[i];
if (glyph == '.notdef') {
charstrings.push({
unicode: 0,
code: 0,
gid: i,
glyph: glyph
});
if (glyph == '.notdef')
continue;
}

var code = inverseEncoding[i];
if (!code || isSpecialUnicode(code)) {
unassignedUnicodeItems.push(i);
Expand Down

0 comments on commit 2927f5e

Please sign in to comment.