mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +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:
parent
36828f1385
commit
04cb00dc9a
2 changed files with 22 additions and 26 deletions
|
@ -647,6 +647,7 @@ public:
|
|||
|
||||
protected:
|
||||
HashMap<u16, CharDescriptor> m_descriptors;
|
||||
HashMap<String, u16> m_name_mapping;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue