Skip to content

Commit

Permalink
LibWeb: Set default fantasy font to Comic Book
Browse files Browse the repository at this point in the history
> 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. :)
  • Loading branch information
krkk authored and awesomekling committed Mar 5, 2022
1 parent d7c27ad commit ed70a67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ed70a67

Please sign in to comment.