mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #11579 from Snuffleupagus/issue-11578
Ignore spaces when normalizing the font name in `Font.fallbackToSystemFont` (issue 11578)
This commit is contained in:
commit
dced0a3821
4 changed files with 107 additions and 1 deletions
|
@ -1272,7 +1272,7 @@ var Font = (function FontClosure() {
|
|||
var name = this.name;
|
||||
var type = this.type;
|
||||
var subtype = this.subtype;
|
||||
var fontName = name.replace(/[,_]/g, "-");
|
||||
let fontName = name.replace(/[,_]/g, "-").replace(/\s/g, "");
|
||||
var stdFontMap = getStdFontMap(),
|
||||
nonStdFontMap = getNonStdFontMap();
|
||||
var isStandardFont =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue