mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00: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: 8b8d83a318
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);
|
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));
|
font_list->set_last_resort_font(found_font->with_size(font_size_in_pt));
|
||||||
|
|
||||||
return font_list;
|
return font_list;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue