Browse Source

Remove div arguments once used for lsb

Vivien Nicolas 14 years ago
parent
commit
6460ffcd25
  1. 4
      fonts.js

4
fonts.js

@ -1486,19 +1486,21 @@ var Type1Parser = function() {
if (value == 13) { if (value == 13) {
if (charstring.length == 2) { if (charstring.length == 2) {
lsb = charstring[0]; lsb = charstring[0];
charstring.splice(0, 1);
width = charstring[1]; width = charstring[1];
} else if (charstring.length == 4 && charstring[3] == 'div') { } else if (charstring.length == 4 && charstring[3] == 'div') {
lsb = charstring[0]; lsb = charstring[0];
charstring.splice(0, 1);
width = charstring[1] / charstring[2]; width = charstring[1] / charstring[2];
} else if (charstring.length == 4 && charstring[2] == 'div') { } else if (charstring.length == 4 && charstring[2] == 'div') {
lsb = charstring[0] / charstring[1]; lsb = charstring[0] / charstring[1];
charstring.splice(0, 3);
width = charstring[3]; width = charstring[3];
} else { } else {
error('Unsupported hsbw format: ' + charstring); error('Unsupported hsbw format: ' + charstring);
} }
charstring.push(lsb, 'hmoveto'); charstring.push(lsb, 'hmoveto');
charstring.splice(0, 1);
continue; continue;
} }
command = charStringDictionary[value]; command = charStringDictionary[value];

Loading…
Cancel
Save