Fixes CFF test and CFF int16 parsing

This commit is contained in:
Yury Delendik 2012-08-29 12:58:12 -05:00
parent 93f9efde39
commit e32ecc44d3
2 changed files with 2 additions and 2 deletions

View File

@ -4500,7 +4500,7 @@ var CFFParser = (function CFFParserClosure() {
return parseFloatOperand(pos);
} else if (value === 28) {
value = dict[pos++];
value = (value << 8) | dict[pos++];
value = ((value << 24) | (dict[pos++] << 16)) >> 16;
return value;
} else if (value === 29) {
value = dict[pos++];

View File

@ -42,7 +42,7 @@ describe('font', function() {
}
describe('CFFParser', function() {
var parser = new CFFParser(fontData);
var parser = new CFFParser(fontData, {});
var cff = parser.parse();
it('parses header', function() {