mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Move splice() after the width assigment
This commit is contained in:
parent
d02a84ea5f
commit
93437352d0
1 changed files with 3 additions and 3 deletions
6
fonts.js
6
fonts.js
|
@ -1484,16 +1484,16 @@ var Type1Parser = function() {
|
|||
if (value == 13) {
|
||||
if (charstring.length == 2) {
|
||||
lsb = charstring[0];
|
||||
charstring.splice(0, 1);
|
||||
width = charstring[1];
|
||||
charstring.splice(0, 1);
|
||||
} else if (charstring.length == 4 && charstring[3] == 'div') {
|
||||
lsb = charstring[0];
|
||||
charstring.splice(0, 1);
|
||||
width = charstring[1] / charstring[2];
|
||||
charstring.splice(0, 1);
|
||||
} else if (charstring.length == 4 && charstring[2] == 'div') {
|
||||
lsb = charstring[0] / charstring[1];
|
||||
charstring.splice(0, 3);
|
||||
width = charstring[3];
|
||||
charstring.splice(0, 3);
|
||||
} else {
|
||||
error('Unsupported hsbw format: ' + charstring);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue