Get the first codepoint instead of the first char when using the toUnicode map
It fixes #19182.
This commit is contained in:
parent
c198e0b446
commit
6fe6b6d6b7
@ -28,7 +28,7 @@ class ToUnicodeMap {
|
|||||||
|
|
||||||
forEach(callback) {
|
forEach(callback) {
|
||||||
for (const charCode in this._map) {
|
for (const charCode in this._map) {
|
||||||
callback(charCode, this._map[charCode].charCodeAt(0));
|
callback(charCode, this._map[charCode].codePointAt(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -687,3 +687,4 @@
|
|||||||
!rotated_ink.pdf
|
!rotated_ink.pdf
|
||||||
!inks.pdf
|
!inks.pdf
|
||||||
!inks_basic.pdf
|
!inks_basic.pdf
|
||||||
|
!issue19182.pdf
|
||||||
|
|||||||
BIN
test/pdfs/issue19182.pdf
Normal file
BIN
test/pdfs/issue19182.pdf
Normal file
Binary file not shown.
@ -11201,5 +11201,12 @@
|
|||||||
"id": "20R"
|
"id": "20R"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue19182",
|
||||||
|
"file": "pdfs/issue19182.pdf",
|
||||||
|
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user