1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00

Merge with upstream

This commit is contained in:
Vivien Nicolas 2011-07-20 15:18:44 +02:00
parent 3cc9912acd
commit 6311977fee
2 changed files with 20 additions and 13 deletions

6
pdf.js
View file

@ -3733,7 +3733,11 @@ var PartialEvaluator = (function() {
var index = 0;
for (var j = 0; j < differences.length; j++) {
var data = differences[j];
IsNum(data) ? index = data : encodingMap[index++] = data;
if (subType.name == 'TrueType') {
IsNum(data) ? index = data : encodingMap[index++] = j;
} else {
IsNum(data) ? index = data : encodingMap[index++] = GlyphsUnicode[data.name];
}
}
// Get the font charset if any