mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add even more non-standard ligatures (PR 15517 follow-up)
Given that we already create multi-byte ToUnicode entries in other cases, see e.g. the `getNormalizedUnicodes` table, this is hopefully fine.
This commit is contained in:
parent
f39ff20485
commit
137a2d6e30
3 changed files with 18 additions and 18 deletions
|
@ -3550,6 +3550,16 @@ class PartialEvaluator {
|
|||
code = unicode;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// Support (some) non-standard ligatures.
|
||||
switch (glyphName) {
|
||||
case "f_h":
|
||||
case "f_t":
|
||||
case "T_h":
|
||||
toUnicode[charcode] = glyphName.replaceAll("_", "");
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (code > 0 && code <= 0x10ffff && Number.isInteger(code)) {
|
||||
// If `baseEncodingName` is one the predefined encodings, and `code`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue