Merge pull request #1092 from notmasteryet/issue-940
Fixes type2 fonts conversion
This commit is contained in:
commit
d9f1365b9c
10
src/fonts.js
10
src/fonts.js
@ -3340,15 +3340,9 @@ var Type2CFF = (function Type2CFFClosure() {
|
|||||||
inverseEncoding[encoding[charcode]] = charcode | 0;
|
inverseEncoding[encoding[charcode]] = charcode | 0;
|
||||||
for (var i = 0, ii = charsets.length; i < ii; i++) {
|
for (var i = 0, ii = charsets.length; i < ii; i++) {
|
||||||
var glyph = charsets[i];
|
var glyph = charsets[i];
|
||||||
if (glyph == '.notdef') {
|
if (glyph == '.notdef')
|
||||||
charstrings.push({
|
|
||||||
unicode: 0,
|
|
||||||
code: 0,
|
|
||||||
gid: i,
|
|
||||||
glyph: glyph
|
|
||||||
});
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
var code = inverseEncoding[i];
|
var code = inverseEncoding[i];
|
||||||
if (!code || isSpecialUnicode(code)) {
|
if (!code || isSpecialUnicode(code)) {
|
||||||
unassignedUnicodeItems.push(i);
|
unassignedUnicodeItems.push(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user