1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

removed code to parse type2 ccharstrings

This commit is contained in:
sbarman 2011-07-20 14:43:44 -07:00
parent c7aec8ac8a
commit 8824ff9539
2 changed files with 6 additions and 42 deletions

10
pdf.js
View file

@ -3821,15 +3821,11 @@ var PartialEvaluator = (function() {
}
var widths = fontDict.get('Widths');
var firstChar = fontDict.get('FirstChar');
var lastChar = fontDict.get('LastChar');
if (widths) {
var glyphWidths = [];
for (var i = 0; i < firstChar; ++i)
glyphWidths.push(0);
var glyphWidths = {};
var unicode = fontDict.get('FirstChar');
for (var i = 0, ii = widths.length; i < ii; ++i)
glyphWidths.push(widths[i]);
glyphWidths[unicode++] = widths[i];
}
var properties = {