LibPDF: Fix handling of differences array in custom encodings

When looking up differences in the specified encoding, we previously
didn't recognize a lot of characters, namely those that are referred to
by a string in the PDF itself, like "/germandbls".

We now create a mapping of those characters to the code points they are
referring to, and correctly look them up when needed.
This commit is contained in:
Julian Offenhäuser 2022-08-19 19:46:30 +02:00 committed by Sam Atkins
commit 04cb00dc9a
Notes: sideshowbarker 2024-07-17 07:02:10 +09:00
2 changed files with 22 additions and 26 deletions

View file

@ -647,6 +647,7 @@ public:
protected:
HashMap<u16, CharDescriptor> m_descriptors;
HashMap<String, u16> m_name_mapping;
};
}