Fixes bias calculation for type2 subr

This commit is contained in:
Yury Delendik 2012-08-11 20:10:31 -05:00
parent e17d828b64
commit 6277e6eda7
3 changed files with 11 additions and 2 deletions

View File

@ -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;

View File

@ -0,0 +1 @@
http://bblum.net/thesis-draft.pdf

View File

@ -515,6 +515,14 @@
"link": true,
"type": "eq"
},
{ "id": "issue1655",
"file": "pdfs/issue1655.pdf",
"md5": "696ef6de6f4f71643771419ef04fc968",
"rounds": 1,
"pageLimit": 9,
"link": true,
"type": "eq"
},
{ "id": "issue1133",
"file": "pdfs/issue1133.pdf",
"md5": "d1b61580cb100e3df93d33703af1773a",