From: notmasteryet Date: Tue, 23 Aug 2011 22:06:45 +0000 (-0500) Subject: Sanitizing base font name before comparison with 'Symbol' X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b90c6945b81db9de81f0a55f25b0bd75d01f770b;p=pdf.js.git Sanitizing base font name before comparison with 'Symbol' --- diff --git a/pdf.js b/pdf.js index 53d3b98..4736340 100644 --- a/pdf.js +++ b/pdf.js @@ -4313,7 +4313,7 @@ var PartialEvaluator = (function() { return null; // Using base font name as a font name. baseFontName = baseFontName.name.replace(/[\+,\-]/g, '_'); - if (baseFontName == 'Symbol') { + if (/^Symbol(_?(Bold|Italic))*$/.test(baseFontName)) { // special case for symbols var encoding = Encodings.symbolsEncoding; for (var i = 0, n = encoding.length, j; i < n; i++) {