mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
For missing font, use a local font if it exists even if there's no standard substitution
If the font foo is missing we just try lo load local(foo) and maybe we'll be lucky.
This commit is contained in:
parent
e738e15aa3
commit
d4b70ec306
5 changed files with 60 additions and 30 deletions
|
@ -58,6 +58,9 @@ const getStdFontMap = getLookupTableFactory(function (t) {
|
|||
t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique";
|
||||
t["Arial-BoldMT"] = "Helvetica-Bold";
|
||||
t["Arial-ItalicMT"] = "Helvetica-Oblique";
|
||||
t["Arial-BoldItalicMT-BoldItalic"] = "Helvetica-BoldOblique";
|
||||
t["Arial-BoldMT-Bold"] = "Helvetica-Bold";
|
||||
t["Arial-ItalicMT-Italic"] = "Helvetica-Oblique";
|
||||
t.ArialUnicodeMS = "Helvetica";
|
||||
t["ArialUnicodeMS-Bold"] = "Helvetica-Bold";
|
||||
t["ArialUnicodeMS-BoldItalic"] = "Helvetica-BoldOblique";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue