1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:27:34 +00:00

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
parent 36828f1385
commit 04cb00dc9a
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;
};
}