1
0
Fork 0
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:
Vivien Nicolas 2011-09-01 01:16:40 +02:00
parent 59c4ba0fb9
commit 81e1485e14
2 changed files with 15 additions and 26 deletions

8
pdf.js
View file

@ -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)) {