From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 19 Jul 2011 14:52:29 +0000 (+0200) Subject: Filter more characters on font name X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4275a68e2982840c201e3a5a43839603ca034d13;p=pdf.js.git Filter more characters on font name --- diff --git a/pdf.js b/pdf.js index 63a948d..33e5543 100644 --- a/pdf.js +++ b/pdf.js @@ -3674,7 +3674,7 @@ var PartialEvaluator = (function() { var fontName = descriptor.get('FontName'); assertWellFormed(IsName(fontName), 'invalid font name'); - fontName = fontName.name.replace('+', '_'); + fontName = fontName.name.replace(/[\+,\-]/g, '_'); var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3'); if (!fontFile)