1
0
Fork 0
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:
Tim van der Meij 2020-02-09 17:33:09 +01:00 committed by GitHub
commit dced0a3821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 107 additions and 1 deletions

View file

@ -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 =