diff options
author | Simon Danner <danners@users.noreply.github.com> | 2021-04-22 20:47:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 20:47:47 +0200 |
commit | c8d56ee4f49c7d7d0946813bb17def6ea2e8b42b (patch) | |
tree | 9102e9af2235a0c012096467c22f41f872e004e2 /Userland/Libraries/LibWeb/CSS/StyleProperties.h | |
parent | 7ab8be9e0bcecdfb5e994322a4958b0d11ff10f6 (diff) | |
download | serenity-c8d56ee4f49c7d7d0946813bb17def6ea2e8b42b.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleProperties.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h index 2971eea526..1b493d5063 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h @@ -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; }; |