Add a fallback for non-embedded *composite* Tahoma fonts (issue 15719)
This commit is contained in:
parent
73c268dc1c
commit
d1c01b3164
@ -1242,8 +1242,8 @@ class Font {
|
||||
// Attempt to improve the glyph mapping for (some) composite fonts that
|
||||
// appear to lack meaningful ToUnicode data.
|
||||
if (this.composite && this.toUnicode instanceof IdentityToUnicodeMap) {
|
||||
if (/Verdana/i.test(name)) {
|
||||
// Fixes issue11242_reduced.pdf
|
||||
if (/Tahoma|Verdana/i.test(name)) {
|
||||
// Fixes issue15719.pdf and issue11242_reduced.pdf.
|
||||
applyStandardFontGlyphMap(map, getGlyphMapForStandardFonts());
|
||||
}
|
||||
}
|
||||
|
1
test/pdfs/issue15719.pdf.link
Normal file
1
test/pdfs/issue15719.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://github.com/mozilla/pdf.js/files/10075867/Error.2.Wrong.hebrew.pdf
|
@ -3512,6 +3512,16 @@
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue15719",
|
||||
"file": "pdfs/issue15719.pdf",
|
||||
"md5": "4a58dbe725897e787a93e26abc621191",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
"type": "eq",
|
||||
"optionalContent": {
|
||||
"37R": false
|
||||
}
|
||||
},
|
||||
{ "id": "issue11242",
|
||||
"file": "pdfs/issue11242_reduced.pdf",
|
||||
"md5": "ba50b6ee537f3e815ccfe0c99e598e05",
|
||||
|
Loading…
Reference in New Issue
Block a user