Fix a small Type1 encoding parsing error that cause the first Type1 font of the Type1 spec to be rejected
This commit is contained in:
parent
001ca071f0
commit
574bc87741
2
fonts.js
2
fonts.js
@ -1848,7 +1848,7 @@ var Type1Parser = function() {
|
|||||||
|
|
||||||
if ('undefined' == typeof(properties.differences[index])) {
|
if ('undefined' == typeof(properties.differences[index])) {
|
||||||
var mapping = properties.encoding[index] || {};
|
var mapping = properties.encoding[index] || {};
|
||||||
mapping.unicode = GlyphsUnicode[glyph] || j;
|
mapping.unicode = GlyphsUnicode[glyph] || index;
|
||||||
properties.glyphs[glyph] = properties.encoding[index] = mapping;
|
properties.glyphs[glyph] = properties.encoding[index] = mapping;
|
||||||
}
|
}
|
||||||
getToken(); // read the in 'put'
|
getToken(); // read the in 'put'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user