Browse Source

Merge pull request #5705 from Snuffleupagus/bug-1108301

Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)
Brendan Dahl 10 years ago
parent
commit
519b6669f0
  1. 1
      src/core/fonts.js
  2. 1
      test/pdfs/.gitignore
  3. BIN
      test/pdfs/bug1108301.pdf
  4. 7
      test/test_manifest.json

1
src/core/fonts.js

@ -2698,6 +2698,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) ||

1
test/pdfs/.gitignore vendored

@ -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

Binary file not shown.

7
test/test_manifest.json

@ -1127,6 +1127,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",

Loading…
Cancel
Save