From 93437352d08eb937e2134796ab7ecc79ea3873c8 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Thu, 25 Aug 2011 02:56:03 +0200 Subject: [PATCH] Move splice() after the width assigment --- fonts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fonts.js b/fonts.js index e7055b96a..b81f4a2ed 100755 --- a/fonts.js +++ b/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); }