Browse Source

LibWeb: Set default serif font to Roman

It's the only Serif font we have, so let's use it!
Karol Kosek 3 years ago
parent
commit
d7c27ad11a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Libraries/LibWeb/CSS/StyleComputer.cpp

+ 1 - 0
Userland/Libraries/LibWeb/CSS/StyleComputer.cpp

@@ -860,6 +860,7 @@ void StyleComputer::compute_font(StyleProperties& style, DOM::Element const* ele
             monospace = true;
             monospace = true;
             return find_font("Csilla");
             return find_font("Csilla");
         case ValueID::Serif:
         case ValueID::Serif:
+            return find_font("Roman");
         case ValueID::SansSerif:
         case ValueID::SansSerif:
         case ValueID::Cursive:
         case ValueID::Cursive:
         case ValueID::Fantasy:
         case ValueID::Fantasy: