mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Fixes bias calculation for type2 subr
This commit is contained in:
parent
e17d828b64
commit
6277e6eda7
3 changed files with 11 additions and 2 deletions
|
@ -4031,9 +4031,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