Skip to content

Commit ed70a67

Browse files
krkkawesomekling
authored andcommitted
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. :)
1 parent d7c27ad commit ed70a67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Userland/Libraries/LibWeb/CSS/StyleComputer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,10 @@ void StyleComputer::compute_font(StyleProperties& style, DOM::Element const* ele
861861
return find_font("Csilla");
862862
case ValueID::Serif:
863863
return find_font("Roman");
864+
case ValueID::Fantasy:
865+
return find_font("Comic Book");
864866
case ValueID::SansSerif:
865867
case ValueID::Cursive:
866-
case ValueID::Fantasy:
867868
case ValueID::UiSerif:
868869
case ValueID::UiSansSerif:
869870
case ValueID::UiRounded:

0 commit comments

Comments
 (0)