Skip to content

Commit

Permalink
Merge pull request #5183 from yurydelendik/type2-width
Browse files Browse the repository at this point in the history
Adds width at the beginning of the Type2 charstring
  • Loading branch information
yurydelendik committed Aug 14, 2014
2 parents 84584f9 + 0ad323f commit 84457b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4824,8 +4824,8 @@ var Type1CharString = (function Type1CharStringClosure() {
sbx = this.stack.pop();
this.lsb = sbx;
this.width = wx;
this.stack.push(sbx);
error = this.executeCommand(1, COMMAND_MAP.hmoveto);
this.stack.push(wx, sbx);
error = this.executeCommand(2, COMMAND_MAP.hmoveto);
break;
case 14: // endchar
this.output.push(COMMAND_MAP.endchar[0]);
Expand Down Expand Up @@ -4899,8 +4899,8 @@ var Type1CharString = (function Type1CharStringClosure() {
sbx = this.stack.pop();
this.lsb = sbx;
this.width = wx;
this.stack.push(sbx, sby);
error = this.executeCommand(2, COMMAND_MAP.rmoveto);
this.stack.push(wx, sbx, sby);
error = this.executeCommand(3, COMMAND_MAP.rmoveto);
break;
case (12 << 8) + 12: // div
if (this.stack.length < 2) {
Expand Down

0 comments on commit 84457b7

Please sign in to comment.