mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 08:08:07 +02:00
Improve text-selection for Type3 fonts with empty /FontBBox-entries (issue 6605)
For Type3 fonts where the /CharProcs-streams of the individual glyph starts with a `d1` operator, we can use that to build a fallback bounding box for the font and thus improve text-selection in some cases.
This commit is contained in:
parent
6255c2a8f3
commit
20770cb06a
4 changed files with 30 additions and 5 deletions
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -437,6 +437,7 @@
|
|||
!quadpoints.pdf
|
||||
!transparent.pdf
|
||||
!xobject-image.pdf
|
||||
!issue6605.pdf
|
||||
!ccitt_EndOfBlock_false.pdf
|
||||
!issue9972-1.pdf
|
||||
!issue9972-2.pdf
|
||||
|
|
BIN
test/pdfs/issue6605.pdf
Normal file
BIN
test/pdfs/issue6605.pdf
Normal file
Binary file not shown.
|
@ -4935,6 +4935,12 @@
|
|||
"type": "eq",
|
||||
"annotations": true
|
||||
},
|
||||
{ "id": "issue6605",
|
||||
"file": "pdfs/issue6605.pdf",
|
||||
"md5": "67158a9c6d0e966ece55f7c433e18cc5",
|
||||
"rounds": 1,
|
||||
"type": "text"
|
||||
},
|
||||
{ "id": "annotation-choice-widget-forms",
|
||||
"file": "pdfs/annotation-choice-widget.pdf",
|
||||
"md5": "7dfb0d743a0da0f4a71b209ab43b0be5",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue