mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 00:28:06 +02:00
Prevent trying to map characters to the specials unicode block in adjustMapping (issue 4650)
This commit is contained in:
parent
32a327b55b
commit
747dec16b2
4 changed files with 12 additions and 0 deletions
|
@ -2459,6 +2459,8 @@ var Font = (function FontClosure() {
|
|||
fontCharCode === 0x7F || // Control char
|
||||
fontCharCode === 0xAD || // Soft hyphen
|
||||
(fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
|
||||
// Prevent drawing characters in the specials unicode block.
|
||||
(fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
|
||||
(isSymbolic && isIdentityUnicode)) &&
|
||||
nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
|
||||
// Loop to try and find a free spot in the private use area.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue