mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Address review comment for pull #419
This commit is contained in:
parent
59c4ba0fb9
commit
81e1485e14
2 changed files with 15 additions and 26 deletions
8
pdf.js
8
pdf.js
|
@ -4281,10 +4281,6 @@ var PartialEvaluator = (function() {
|
|||
case 'Type1':
|
||||
baseEncoding = Encodings.StandardEncoding.slice();
|
||||
break;
|
||||
case 'Type3':
|
||||
// There is no baseEncoding for a Type3 font, the 'Encoding'
|
||||
// entry is required and should provide a complete encoding
|
||||
break;
|
||||
default:
|
||||
warn('Unknown type of font: ' + fontType);
|
||||
break;
|
||||
|
@ -4308,10 +4304,6 @@ var PartialEvaluator = (function() {
|
|||
glyphsMap[glyph] = encodingMap[i] = GlyphsUnicode[glyph] || i;
|
||||
}
|
||||
|
||||
|
||||
if (fontType == 'Type3')
|
||||
log(glyphsMap);
|
||||
|
||||
if (fontType == 'TrueType' && fontDict.has('ToUnicode') && differences) {
|
||||
var cmapObj = xref.fetchIfRef(fontDict.get('ToUnicode'));
|
||||
if (IsName(cmapObj)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue