mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Filter more characters on font name
This commit is contained in:
parent
6600e747e5
commit
4275a68e29
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue