Don't map glyphs to certain problematic General Punctuation Unicode locations (bug 911034)
Fixes the remaining missing characters in https://bugzilla.mozilla.org/show_bug.cgi?id=911034. For reference, see http://www.unicode.org/charts/PDF/U2000.pdf (and also http://en.wikipedia.org/wiki/General_Punctuation_%28Unicode_block%29).
This commit is contained in:
parent
a54ec673c5
commit
fda858ae33
@ -2666,6 +2666,11 @@ var Font = (function FontClosure() {
|
|||||||
if (code >= 0x80 && code <= 0x9F) { // Control chars
|
if (code >= 0x80 && code <= 0x9F) { // Control chars
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if ((code >= 0x2000 && code <= 0x200F) || // General punctuation chars
|
||||||
|
(code >= 0x2028 && code <= 0x202F) ||
|
||||||
|
(code >= 0x2060 && code <= 0x206F)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials Unicode block
|
if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials Unicode block
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -2674,6 +2679,8 @@ var Font = (function FontClosure() {
|
|||||||
case 0xA0: // Non breaking space
|
case 0xA0: // Non breaking space
|
||||||
case 0xAD: // Soft hyphen
|
case 0xAD: // Soft hyphen
|
||||||
case 0x0E33: // Thai character SARA AM
|
case 0x0E33: // Thai character SARA AM
|
||||||
|
case 0x2011: // Non breaking hyphen
|
||||||
|
case 0x205F: // Medium mathematical space
|
||||||
case 0x25CC: // Dotted circle (combining mark)
|
case 0x25CC: // Dotted circle (combining mark)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -30,6 +30,7 @@
|
|||||||
!bug847420.pdf
|
!bug847420.pdf
|
||||||
!bug860632.pdf
|
!bug860632.pdf
|
||||||
!bug894572.pdf
|
!bug894572.pdf
|
||||||
|
!bug911034.pdf
|
||||||
!bug1108301.pdf
|
!bug1108301.pdf
|
||||||
!pdfjsbad1586.pdf
|
!pdfjsbad1586.pdf
|
||||||
!freeculture.pdf
|
!freeculture.pdf
|
||||||
|
BIN
test/pdfs/bug911034.pdf
Normal file
BIN
test/pdfs/bug911034.pdf
Normal file
Binary file not shown.
@ -52,6 +52,13 @@
|
|||||||
"type": "eq",
|
"type": "eq",
|
||||||
"about": "Fonts referenced only by name and not by an object identifier."
|
"about": "Fonts referenced only by name and not by an object identifier."
|
||||||
},
|
},
|
||||||
|
{ "id": "bug911034",
|
||||||
|
"file": "pdfs/bug911034.pdf",
|
||||||
|
"md5": "54ee432a4e16b26b242fbf549cdad177",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "bug921760",
|
{ "id": "bug921760",
|
||||||
"file": "pdfs/bug921760.pdf",
|
"file": "pdfs/bug921760.pdf",
|
||||||
"md5": "1aa136d786a65b0d7cce7bdb3c58c6c3",
|
"md5": "1aa136d786a65b0d7cce7bdb3c58c6c3",
|
||||||
|
Loading…
Reference in New Issue
Block a user