mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #15948 from Snuffleupagus/bug-1811668
Tweak `adjustType1ToUnicode` for fonts with a predefined *named* encoding (bug 1811668, PR 14050 follow-up)
This commit is contained in:
commit
edfdb693e5
4 changed files with 8 additions and 1 deletions
|
@ -201,7 +201,7 @@ function adjustType1ToUnicode(properties, builtInEncoding) {
|
|||
for (const charCode in builtInEncoding) {
|
||||
if (properties.hasEncoding) {
|
||||
if (
|
||||
properties.differences.length === 0 ||
|
||||
properties.baseEncodingName ||
|
||||
properties.differences[charCode] !== undefined
|
||||
) {
|
||||
continue; // The font dictionary has an `Encoding`/`Differences` entry.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue