1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Ignore spaces when normalizing the font name in Font.fallbackToSystemFont (issue 11578)

This commit is contained in:
Jonas Jenwald 2020-02-08 19:51:16 +01:00
parent a5fec297c0
commit 7937165537
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 =