From ed70a67a4978056aea50ba4415db1ce1d533e247 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 5 Mar 2022 17:58:07 +0100 Subject: [PATCH] LibWeb: Set default fantasy font to Comic Book > Fantasy fonts are primarily decorative or expressive fonts that > contain decorative or expressive representations of characters. https://drafts.csswg.org/css-fonts/#valdef-font-family-fantasy Seems like this font fits this description. :) --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index 032cc18861..ccaa8dc947 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -861,9 +861,10 @@ void StyleComputer::compute_font(StyleProperties& style, DOM::Element const* ele return find_font("Csilla"); case ValueID::Serif: return find_font("Roman"); + case ValueID::Fantasy: + return find_font("Comic Book"); case ValueID::SansSerif: case ValueID::Cursive: - case ValueID::Fantasy: case ValueID::UiSerif: case ValueID::UiSansSerif: case ValueID::UiRounded: