mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Support multiple emoji/symbol fonts
This commit is contained in:
parent
01ad180182
commit
abcc5bc16d
Notes:
github-actions[bot]
2025-11-03 09:57:33 +00:00
Author: https://github.com/socram8888
Commit: abcc5bc16d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6665
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 20 additions and 18 deletions
|
|
@ -1927,8 +1927,11 @@ RefPtr<Gfx::FontCascadeList const> StyleComputer::compute_font_for_style_values(
|
|||
font_list->add(*default_font);
|
||||
}
|
||||
|
||||
if (auto emoji_font = Platform::FontPlugin::the().default_emoji_font(font_size_in_pt); emoji_font) {
|
||||
font_list->add(*emoji_font);
|
||||
// Add emoji and symbol fonts
|
||||
for (auto font_name : Platform::FontPlugin::the().symbol_font_names()) {
|
||||
if (auto other_font_list = find_font(font_name)) {
|
||||
font_list->extend(*other_font_list);
|
||||
}
|
||||
}
|
||||
|
||||
// The default font is already included in the font list, but we explicitly set it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue