1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

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. :)
This commit is contained in:
Karol Kosek 2022-03-05 17:58:07 +01:00 committed by Andreas Kling
parent d7c27ad11a
commit ed70a67a49

View file

@ -861,9 +861,10 @@ void StyleComputer::compute_font(StyleProperties& style, DOM::Element const* ele
return find_font("Csilla"); return find_font("Csilla");
case ValueID::Serif: case ValueID::Serif:
return find_font("Roman"); return find_font("Roman");
case ValueID::Fantasy:
return find_font("Comic Book");
case ValueID::SansSerif: case ValueID::SansSerif:
case ValueID::Cursive: case ValueID::Cursive:
case ValueID::Fantasy:
case ValueID::UiSerif: case ValueID::UiSerif:
case ValueID::UiSansSerif: case ValueID::UiSansSerif:
case ValueID::UiRounded: case ValueID::UiRounded: