mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Handle cases where the fontName contains non-alphanumeric characters (issue 4909)
This commit is contained in:
parent
b2d8e73d54
commit
7802a7ab97
1 changed files with 1 additions and 1 deletions
|
@ -1622,7 +1622,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||||
// Workaround for cases where e.g. fontNameStr = 'Arial' and
|
// Workaround for cases where e.g. fontNameStr = 'Arial' and
|
||||||
// baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
|
// baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
|
||||||
if (fontNameStr && baseFontStr &&
|
if (fontNameStr && baseFontStr &&
|
||||||
baseFontStr.search(fontNameStr) === 0) {
|
baseFontStr.indexOf(fontNameStr) === 0) {
|
||||||
fontName = baseFont;
|
fontName = baseFont;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue