mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
LibWeb: Parse ascent-, descent-, and line-gap-override descriptors
This commit is contained in:
parent
3a5e78780e
commit
2f7d18865d
Notes:
github-actions[bot]
2024-09-28 12:44:05 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2f7d18865d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1554
5 changed files with 100 additions and 16 deletions
|
@ -388,7 +388,7 @@ void FontFace::load_font_source()
|
|||
auto& style_computer = const_cast<StyleComputer&>(window.document()->style_computer());
|
||||
|
||||
// FIXME: The ParsedFontFace is kind of expensive to create. We should be using a shared sub-object for the data
|
||||
ParsedFontFace parsed_font_face { font->m_family, font->m_weight.to_number<int>(), 0 /* FIXME: slope */, font->m_urls, font->m_unicode_ranges };
|
||||
ParsedFontFace parsed_font_face { font->m_family, font->m_weight.to_number<int>(), 0 /* FIXME: slope */, font->m_urls, font->m_unicode_ranges, /* FIXME: ascent_override */ {}, /* FIXME: descent_override */ {}, /* FIXME: line_gap_override */ {} };
|
||||
if (auto loader = style_computer.load_font_face(parsed_font_face, move(on_load), move(on_error)); loader.has_value())
|
||||
loader->start_loading_next_url();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue