mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Extend getNonStdFontMap
for non-embedded versions of the ItcSymbol font (issue 11532)
Despite its name, the fonts in ItcSymbol-family are "regular" fonts and not Symbol ones. However, given that the font name contains the word "Symbol" we ended up picking the wrong code-path in the `Font.fallbackToSystemFont`-method. *Please note:* While this patch ensures that the text becomes readable, by falling back a standard font, the rendering will obviously not be perfect. However, that's the PDF generators "fault" since non-embedded fonts cannot be guaranteed to render correctly in all environments.
This commit is contained in:
parent
07e233d08b
commit
ba9f004097
3 changed files with 16 additions and 0 deletions
1
test/pdfs/issue11532.pdf.link
Normal file
1
test/pdfs/issue11532.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/7086733/ar99.pdf
|
|
@ -76,6 +76,15 @@
|
|||
"link": false,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue11532",
|
||||
"file": "pdfs/issue11532.pdf",
|
||||
"md5": "9216481d259ae2b8d747236e745cbc80",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 2,
|
||||
"lastPage": 2,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue11549",
|
||||
"file": "pdfs/issue11549_reduced.pdf",
|
||||
"md5": "a1ea636f413e02e10dbdf379ab4a99ae",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue