Relax the |isSymbolicFont| check for TrueType (3, 1) cmap tables (issue 5701)
This commit is contained in:
parent
8614c17c1d
commit
592890a758
@ -3184,9 +3184,11 @@ var Font = (function FontClosure() {
|
|||||||
useTable = true;
|
useTable = true;
|
||||||
// Continue the loop since there still may be a higher priority
|
// Continue the loop since there still may be a higher priority
|
||||||
// table.
|
// table.
|
||||||
} else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
|
} else if (platformId === 3 && encodingId === 1) {
|
||||||
useTable = true;
|
useTable = true;
|
||||||
canBreak = true;
|
if (!isSymbolicFont) {
|
||||||
|
canBreak = true;
|
||||||
|
}
|
||||||
} else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
|
} else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
|
||||||
useTable = true;
|
useTable = true;
|
||||||
canBreak = true;
|
canBreak = true;
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -115,3 +115,4 @@
|
|||||||
!issue5475.pdf
|
!issue5475.pdf
|
||||||
!issue5481.pdf
|
!issue5481.pdf
|
||||||
!issue5567.pdf
|
!issue5567.pdf
|
||||||
|
!issue5701.pdf
|
||||||
|
BIN
test/pdfs/issue5701.pdf
Normal file
BIN
test/pdfs/issue5701.pdf
Normal file
Binary file not shown.
@ -1692,6 +1692,13 @@
|
|||||||
"type": "eq",
|
"type": "eq",
|
||||||
"about": "Invisible Type3 font used for text selection and searching."
|
"about": "Invisible Type3 font used for text selection and searching."
|
||||||
},
|
},
|
||||||
|
{ "id": "issue5701",
|
||||||
|
"file": "pdfs/issue5701.pdf",
|
||||||
|
"md5": "7ec476aee12e8bd6be79140223d329c1",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue5280",
|
{ "id": "issue5280",
|
||||||
"file": "pdfs/issue5280.pdf",
|
"file": "pdfs/issue5280.pdf",
|
||||||
"md5": "0ea1230e2964e74cb6db063a89b78803",
|
"md5": "0ea1230e2964e74cb6db063a89b78803",
|
||||||
|
Loading…
Reference in New Issue
Block a user