1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 18:45:08 +00:00
serenity/Userland/Libraries/LibPDF/Fonts
Andreas Kling d6a3be1615 LibPDF: Add missing character quirk for WinAnsiEncoding fonts
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-08 09:54:20 +01:00
..
PDFFont.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PDFFont.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
PS1FontProgram.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PS1FontProgram.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TrueTypeFont.cpp LibPDF: Add missing character quirk for WinAnsiEncoding fonts 2022-12-08 09:54:20 +01:00
TrueTypeFont.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
Type0Font.cpp LibPDF: Move all font handling to Type1Font and TrueTypeFont classes 2022-11-25 22:44:47 +01:00
Type0Font.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
Type1Font.cpp LibPDF: Add missing character quirk for WinAnsiEncoding fonts 2022-12-08 09:54:20 +01:00
Type1Font.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00