1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 20:17:42 +00:00
serenity/Userland/Libraries/LibGfx/Font
Andreas Kling ce6636e78e LibGfx: Make glyph ID lookup faster with a cache
This patch adds a "GlyphPage" cache which stores the mapping between
code points and glyph IDs in a segmented table of "pages".

This makes Font::glyph_id_for_code_point() significantly faster by
not reparsing the font tables every time you call it.

In the future, we can add more information to GlyphPage (such as
horizontal metrics for each glyph) to further reduce time spent in
text layout and painting.
2023-01-31 17:14:57 +01:00
..
OpenType LibGfx: Make glyph ID lookup faster with a cache 2023-01-31 17:14:57 +01:00
WOFF LibGfx: Add ability to request glyphs at subpixel offsets to fonts 2023-01-05 12:09:35 +01:00
BitmapFont.cpp LibGfx: Use Core::Stream to write bitmap fonts 2023-01-20 20:50:42 +00:00
BitmapFont.h LibGfx: Remove unused Font::point_size() 2023-01-06 12:02:20 +01:00
Emoji.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
Emoji.h LibGfx: Change Emoji::emoji_for_code_points to accept const code points 2022-09-16 15:20:59 +02:00
Font.cpp LibGfx: Add ability to request glyphs at subpixel offsets to fonts 2023-01-05 12:09:35 +01:00
Font.h LibGfx: Remove unused Font::point_size() 2023-01-06 12:02:20 +01:00
FontDatabase.cpp LibGfx: Remove declarations for non-existent methods 2023-01-27 20:33:18 +00:00
FontDatabase.h LibGfx: Remove declarations for non-existent methods 2023-01-27 20:33:18 +00:00
FontStyleMapping.h Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
PathRasterizer.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
PathRasterizer.h LibGfx+LibPDF: Apply subpixel offset in affine transformation 2023-01-05 13:50:26 +01:00
ScaledFont.cpp LibGfx: Cache font pixel metrics in ScaledFont 2023-01-24 14:13:59 +01:00
ScaledFont.h LibGfx: Cache font pixel metrics in ScaledFont 2023-01-24 14:13:59 +01:00
Typeface.cpp LibGfx: Migrate Typeface from TTF::Font to Gfx::VectorFont 2022-04-09 23:48:18 +02:00
Typeface.h AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
VectorFont.h LibGfx: Make Font::preferred_line_height() more correct 2023-01-06 12:02:20 +01:00