mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
This commit is contained in:
parent
c0a6b0f308
commit
b19bb74813
1 changed files with 6 additions and 0 deletions
|
@ -4295,6 +4295,12 @@ var Font = (function FontClosure() {
|
|||
(code = parseInt(glyphName.substr(1), 16))) {
|
||||
toUnicode[charcode] = String.fromCharCode(code);
|
||||
}
|
||||
// g00xx glyph
|
||||
if (glyphName.length === 5 &&
|
||||
glyphName[0] === 'g' &&
|
||||
(code = parseInt(glyphName.substr(1), 16))) {
|
||||
toUnicode[charcode] = String.fromCharCode(code);
|
||||
}
|
||||
// Cddd glyph
|
||||
if (glyphName.length >= 3 &&
|
||||
glyphName[0] === 'C' &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue