mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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
Notes:
sideshowbarker
2024-07-17 07:02:10 +09:00
Author: https://github.com/janso3
Commit: 04cb00dc9a
Pull-request: https://github.com/SerenityOS/serenity/pull/14873
Reviewed-by: https://github.com/mattco98 ✅
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