Merge pull request #8071 from Snuffleupagus/bug-1337429

Always choose a (3, 1) cmap table for TrueType fonts that have an encoding specified, regardless of the Symbolic font flag (bug 1337429)
This commit is contained in:
Brendan Dahl 2017-02-16 15:13:46 -08:00 committed by GitHub
commit 425ad30912
4 changed files with 112 additions and 1 deletions

View File

@ -1434,7 +1434,7 @@ var Font = (function FontClosure() {
// 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 (platformId === 3 && encodingId === 1 && } else if (platformId === 3 && encodingId === 1 &&
((!isSymbolicFont && hasEncoding) || !potentialTable)) { (hasEncoding || !potentialTable)) {
useTable = true; useTable = true;
if (!isSymbolicFont) { if (!isSymbolicFont) {
canBreak = true; canBreak = true;

View File

@ -62,6 +62,7 @@
!bug1146106.pdf !bug1146106.pdf
!bug1252420.pdf !bug1252420.pdf
!bug1308536.pdf !bug1308536.pdf
!bug1337429.pdf
!issue5564_reduced.pdf !issue5564_reduced.pdf
!canvas.pdf !canvas.pdf
!bug1132849.pdf !bug1132849.pdf

103
test/pdfs/bug1337429.pdf Normal file

File diff suppressed because one or more lines are too long

View File

@ -948,6 +948,13 @@
"rounds": 1, "rounds": 1,
"type": "eq" "type": "eq"
}, },
{ "id": "bug1337429",
"file": "pdfs/bug1337429.pdf",
"md5": "4e6e4dfdab884e9465bdce657b590028",
"link": false,
"rounds": 1,
"type": "eq"
},
{ "id": "glyph_accent", { "id": "glyph_accent",
"file": "pdfs/glyph_accent.pdf", "file": "pdfs/glyph_accent.pdf",
"md5": "1526e4edaa3ec439ebf156d0a0b385aa", "md5": "1526e4edaa3ec439ebf156d0a0b385aa",