summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Encoding.h
AgeCommit message (Collapse)Author
2022-12-08LibPDF: Add missing character quirk for WinAnsiEncoding fontsAndreas Kling
Fonts with the encoding name "WinAnsiEncoding" should render missing characters above character code 040 (octal) as a "bullet" character. This patch adds Encoding::should_map_to_bullet(char_code) which is then called by char_code_to_code_point() to check if the given char code should be displayed as a bullet instead. I didn't have a good way to test this, so I've only verified that it works by manually overriding inputs to the function during the rendering stage. This takes care of a FIXME in the Annex D part of the PDF specification.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-12-03Everywhere: Run clang-formatLinus Groh
2022-10-16LibPDF: Add very basic support for Adobe Type 1 font renderingJulian Offenhäuser
Previously we would draw all text, no matter what font type, as Liberation Serif, which results in things like ugly character spacing. We now have partial support for drawing Type 1 glyphs, which are part of a PostScript font program. We completely ignore hinting for now, which results in ugly looking characters at low resolutions, but gain support for a large number of typefaces, including most of the default fonts used in TeX.
2022-09-17LibPDF: Rename argument for the latin character set enumeration macroJulian Offenhäuser
The previous name "V" collided with one of the entries.
2022-09-17LibPDF: Fix handling of differences array in custom encodingsJulian Offenhäuser
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.
2022-03-29LibPDF: Add support for builtin and custom EncodingsMatthew Olsson