mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fixes type2 fonts conversion (#940)
This commit is contained in:
parent
a908827175
commit
2927f5e7bd
1 changed files with 2 additions and 8 deletions
10
src/fonts.js
10
src/fonts.js
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue