1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 02:05:07 +00:00
serenity/Userland/Libraries/LibGfx/Font
Nico Weber 93ee01041f LibGfx/OpenType: Validate we can read the active cmap subtable format
We now reject fonts where the active cmap subtable is in a format
we can't read yet, instead of silently drawing squares for all glyphs.

This doesn't fire at all for my 1000-file PDF test set, but seems
like a good thing to check.

(Instead of duplicating the switch, I first tried making a
glyph_id_for_code_point_or_else() that returns ErrorOr<u32> and then
make both glyph_id_for_code_point() and validate_format_can_be_read()
call that, but I liked less how that worked out -- felt too clever.)
2024-02-08 13:48:33 +00:00
..
OpenType LibGfx/OpenType: Validate we can read the active cmap subtable format 2024-02-08 13:48:33 +00:00
WOFF Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
WOFF2 LibGfx: Use FourCC as OpenType::Tag type 2023-11-24 08:42:46 +01:00
BitmapFont.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
BitmapFont.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Emoji.cpp Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
Emoji.h LibGfx+LibUnicode: Support specifying the path to search for emoji 2023-03-01 14:54:16 +00:00
Font.cpp LibGfx: Do not use divisions when calculating font subpixel offsets 2023-06-01 15:13:57 +02:00
Font.h LibGfx: Improve tie-breaking in Typeface::get_font 2023-11-09 16:09:18 +01:00
FontDatabase.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
FontDatabase.h LibGfx+Userland: Move FontWeight enum into its own file 2024-01-21 09:32:10 -05:00
FontStyleMapping.h LibGfx: Add functions to convert font widths to/from strings 2023-07-20 08:02:12 +01:00
FontWeight.h LibGfx+Userland: Move FontWeight enum into its own file 2024-01-21 09:32:10 -05:00
ScaledFont.cpp LibGfx+LibWeb: Move Gfx::ScaledFont caching from LibWeb into LibGfx 2023-12-26 18:15:55 +01:00
ScaledFont.h AK: Rename GenericTraits to DefaultTraits 2023-11-09 10:05:51 -05:00
Typeface.cpp LibGfx+LibWeb: Move Gfx::ScaledFont caching from LibWeb into LibGfx 2023-12-26 18:15:55 +01:00
Typeface.h LibGfx: Convert FontDatabase APIs to use FlyString 2023-09-06 11:29:03 -04:00
UnicodeRange.h LibWeb+LibGfx: Move UnicodeRange from LibWeb to LibGfx 2023-12-10 17:32:04 +01:00
VectorFont.cpp LibGfx+LibWeb: Move Gfx::ScaledFont caching from LibWeb into LibGfx 2023-12-26 18:15:55 +01:00
VectorFont.h LibGfx+LibWeb: Move Gfx::ScaledFont caching from LibWeb into LibGfx 2023-12-26 18:15:55 +01:00