LibWeb: Request default font with size specified in style

This commit is contained in:
Aliaksandr Kalenik 2025-01-02 04:00:19 +03:00 committed by Andreas Kling
parent 0b8b690f92
commit 8b8d83a318
Notes: github-actions[bot] 2025-01-02 09:48:26 +00:00

View file

@ -2013,7 +2013,7 @@ RefPtr<Gfx::FontCascadeList const> 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;