From 8b8d83a318b1dcd930bcfb8a90d6520096d04903 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 2 Jan 2025 04:00:19 +0300 Subject: [PATCH] LibWeb: Request default font with size specified in style --- Libraries/LibWeb/CSS/StyleComputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/CSS/StyleComputer.cpp b/Libraries/LibWeb/CSS/StyleComputer.cpp index b19bf1e7204..8675d01d9b9 100644 --- a/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -2013,7 +2013,7 @@ RefPtr StyleComputer::compute_font_for_style_values( font_list->add(*emoji_font); } - auto found_font = ComputedProperties::font_fallback(monospace, bold, 12); + auto found_font = ComputedProperties::font_fallback(monospace, bold, font_size_in_pt); font_list->set_last_resort_font(found_font->with_size(font_size_in_pt)); return font_list;