mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
LibWeb: Improve fallback font selection
Try to find a font that has at least some of the requested properties. This makes e.g. rfcs on tools.ietf.org easier to read since their headers are now bold.
This commit is contained in:
parent
7ab8be9e0b
commit
c8d56ee4f4
Notes:
sideshowbarker
2024-07-18 19:14:20 +09:00
Author: https://github.com/danners
Commit: c8d56ee4f4
Pull-request: https://github.com/SerenityOS/serenity/pull/6556
2 changed files with 25 additions and 3 deletions
|
@ -76,6 +76,7 @@ private:
|
|||
Optional<CSS::Overflow> overflow(CSS::PropertyID) const;
|
||||
|
||||
void load_font() const;
|
||||
RefPtr<Gfx::Font> font_fallback(bool monospace, bool bold) const;
|
||||
|
||||
mutable RefPtr<Gfx::Font> m_font;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue