mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Remove div arguments once used for lsb
This commit is contained in:
parent
f48ab3cfd1
commit
6460ffcd25
1 changed files with 3 additions and 1 deletions
4
fonts.js
4
fonts.js
|
@ -1486,19 +1486,21 @@ var Type1Parser = function() {
|
|||
if (value == 13) {
|
||||
if (charstring.length == 2) {
|
||||
lsb = charstring[0];
|
||||
charstring.splice(0, 1);
|
||||
width = charstring[1];
|
||||
} else if (charstring.length == 4 && charstring[3] == 'div') {
|
||||
lsb = charstring[0];
|
||||
charstring.splice(0, 1);
|
||||
width = charstring[1] / charstring[2];
|
||||
} else if (charstring.length == 4 && charstring[2] == 'div') {
|
||||
lsb = charstring[0] / charstring[1];
|
||||
charstring.splice(0, 3);
|
||||
width = charstring[3];
|
||||
} else {
|
||||
error('Unsupported hsbw format: ' + charstring);
|
||||
}
|
||||
|
||||
charstring.push(lsb, 'hmoveto');
|
||||
charstring.splice(0, 1);
|
||||
continue;
|
||||
}
|
||||
command = charStringDictionary[value];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue