Merge pull request #6407 from Snuffleupagus/bug-1200096
Fallback in `readCmapTable`, instead of using `error`, for TrueType fonts with unsupported cmap formats (bug 1200096)
This commit is contained in:
commit
238e16feeb
@ -3390,7 +3390,13 @@ var Font = (function FontClosure() {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
error('cmap table has unsupported format: ' + format);
|
||||
warn('cmap table has unsupported format: ' + format);
|
||||
return {
|
||||
platformId: -1,
|
||||
encodingId: -1,
|
||||
mappings: [],
|
||||
hasShortCmap: false
|
||||
};
|
||||
}
|
||||
|
||||
// removing duplicate entries
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -15,6 +15,7 @@
|
||||
!arial_unicode_en_cidfont.pdf
|
||||
!asciihexdecode.pdf
|
||||
!bug1050040.pdf
|
||||
!bug1200096.pdf
|
||||
!canvas.pdf
|
||||
!complex_ttf_font.pdf
|
||||
!extgstate.pdf
|
||||
|
BIN
test/pdfs/bug1200096.pdf
Normal file
BIN
test/pdfs/bug1200096.pdf
Normal file
Binary file not shown.
@ -629,6 +629,13 @@
|
||||
"link": false,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "bug1200096",
|
||||
"file": "pdfs/bug1200096.pdf",
|
||||
"md5": "b6bd8df094b5d511c13ed095d2a07515",
|
||||
"rounds": 1,
|
||||
"link": false,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "hudsonsurvey",
|
||||
"file": "pdfs/hudsonsurvey.pdf",
|
||||
"md5": "bf0e6576a7b6c2fe7485bce1b78e006f",
|
||||
|
Loading…
Reference in New Issue
Block a user