1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #1978 from yurydelendik/issue-1655

Fixes bias calculation for type2 subr
This commit is contained in:
Brendan Dahl 2012-08-14 14:50:32 -07:00
commit 590c6c413e
3 changed files with 12 additions and 2 deletions

View file

@ -4043,9 +4043,9 @@ Type1Font.prototype = {
getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
var bias = 0;
var count = type1Subrs.length;
if (count < 1240)
if (count < 1133)
bias = 107;
else if (count < 33900)
else if (count < 33769)
bias = 1131;
else
bias = 32768;