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:
commit
590c6c413e
3 changed files with 12 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue