Andreas Kling
4910cc1879
LibGfx: Cache vector fonts by family name
...
Instead of just keeping them in an unsorted Vector, which led to
increasingly noticeable O(n) lookups, we now cache a list of Typefaces
per family name.
2022-09-15 12:45:00 +02:00
Andreas Kling
3dc82d2fa5
LibGfx: Add API for loading more directories into Gfx::FontDatabase
...
Also make the font discovery algorithm search subdirectories as well.
This will be used by Ladybird to discover more fonts on non-Serenity
systems. :^)
2022-09-08 12:30:25 +02:00
Karol Kosek
652870c178
LibGfx: Ignore incorrect .font files when building the Font Database
...
Previously every GUI application would crash if we had an incorrect (or
empty) .font file in /res/fonts.
2022-09-03 00:07:53 +02:00
Andreas Kling
548081ea23
Userland+Base: Make the window titlebar font configurable separately
...
Instead of defaulting to "bold variant of the system default font",
let's allow the user to set any font they want as the titlebar font.
2022-08-01 10:29:53 +02:00
Simon Wanner
bf6d64c199
LibGfx: Add a loader the Web Open Font Format (WOFF)
...
This format is 'just' a zlib compressed wrapper for TrueType/OpenType
which makes implementing it rather convenient. :^)
2022-04-09 23:48:18 +02:00
Simon Wanner
17baf05c5a
LibGfx: Migrate Typeface from TTF::Font to Gfx::VectorFont
2022-04-09 23:48:18 +02:00
Simon Wanner
206d6ece55
LibGfx: Move other font-related files to LibGfx/Font/
2022-04-09 23:48:18 +02:00