From 0c66e53544f933500477ddad05bc5a7f15bea951 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 7 Feb 2021 10:55:25 +0100 Subject: LibWeb: Honor font sizes specified by CSS Instead of trying to coerce them into some font size we think we might have, let's just honor the request and do our best to find a font. --- Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp index 4a3c1809e8..1d0301cfae 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -179,12 +179,7 @@ void StyleProperties::load_font() const } else if (font_size->is_length()) { // FIXME: This isn't really a length, it's a numeric value.. int font_size_integer = font_size->to_length().raw_value(); - if (font_size_integer <= 10) - size = 10; - else if (font_size_integer <= 12) - size = 12; - else - size = 14; + size = font_size_integer; } FontSelector font_selector { family, size, weight }; -- cgit v1.2.3