mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
LibWeb: Request default font with size specified in style
This commit is contained in:
parent
0b8b690f92
commit
8b8d83a318
Notes:
github-actions[bot]
2025-01-02 09:48:26 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/8b8d83a318b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3101
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue