Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)

It seems that `0x25CC` is another bad spot for charCodes.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1108301.
This commit is contained in:
Jonas Jenwald 2015-02-06 21:58:01 +01:00
parent bc7a110743
commit 0a3341dadc
4 changed files with 9 additions and 0 deletions

View File

@ -2700,6 +2700,7 @@ var Font = (function FontClosure() {
fontCharCode === 0x7F || // Control char fontCharCode === 0x7F || // Control char
fontCharCode === 0xAD || // Soft hyphen fontCharCode === 0xAD || // Soft hyphen
fontCharCode === 0xA0 || // Non breaking space fontCharCode === 0xA0 || // Non breaking space
fontCharCode === 0x25CC || // Dotted circle (combining mark)
(fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
// Prevent drawing characters in the specials unicode block. // Prevent drawing characters in the specials unicode block.
(fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) || (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||

View File

@ -30,6 +30,7 @@
!bug847420.pdf !bug847420.pdf
!bug860632.pdf !bug860632.pdf
!bug894572.pdf !bug894572.pdf
!bug1108301.pdf
!pdfjsbad1586.pdf !pdfjsbad1586.pdf
!freeculture.pdf !freeculture.pdf
!pdfkit_compressed.pdf !pdfkit_compressed.pdf

BIN
test/pdfs/bug1108301.pdf Normal file

Binary file not shown.

View File

@ -1113,6 +1113,13 @@
"link": false, "link": false,
"type": "eq" "type": "eq"
}, },
{ "id": "bug1108301",
"file": "pdfs/bug1108301.pdf",
"md5": "cc94cc7e5f5e281dfa7e21020dd90cc7",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue1466", { "id": "issue1466",
"file": "pdfs/issue1466.pdf", "file": "pdfs/issue1466.pdf",
"md5": "8a8877432e5bb10cfd50d60488d947bb", "md5": "8a8877432e5bb10cfd50d60488d947bb",