mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Implement TrueType character map "format 2" (fixes #14117)
If a PDF included an embedded TrueType font whose preferred character map (cmap) was in "format 2", the code would select that character map and then refuse to read it because of an unsupported format, thus causing the characters not to be rendered. This commit implements support for format 2 as described at the link below. https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6cmap.html
This commit is contained in:
parent
3945965605
commit
586295fad6
4 changed files with 56 additions and 0 deletions
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -288,6 +288,7 @@
|
|||
!PDFJS-7562-reduced.pdf
|
||||
!issue11768_reduced.pdf
|
||||
!issue5039.pdf
|
||||
!issue14117.pdf
|
||||
!issue5070.pdf
|
||||
!issue5238.pdf
|
||||
!issue5244.pdf
|
||||
|
|
BIN
test/pdfs/issue14117.pdf
Normal file
BIN
test/pdfs/issue14117.pdf
Normal file
Binary file not shown.
|
@ -5589,6 +5589,12 @@
|
|||
"type": "eq",
|
||||
"annotations": true
|
||||
},
|
||||
{ "id": "issue14117",
|
||||
"file": "pdfs/issue14117.pdf",
|
||||
"md5": "9b1c33ad2f59f4e723c258e863149abf",
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "annotation-text-widget-annotations",
|
||||
"file": "pdfs/annotation-text-widget.pdf",
|
||||
"md5": "b7b8923a12998fca8603fae53f73f19b",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue