LibWeb/Layout: Add FIXMEs where we're using the wrong font

It's not clear how to address these right now, so add a FIXME to make
them easier to find and address later.
This commit is contained in:
Sam Atkins 2024-12-05 19:45:16 +00:00 committed by Alexander Kalenik
parent 00302b5b1e
commit ebc91686b5
Notes: github-actions[bot] 2024-12-06 01:58:22 +00:00
2 changed files with 3 additions and 0 deletions

View file

@ -307,6 +307,7 @@ void SVGFormattingContext::layout_nested_viewport(Box const& viewport)
Gfx::Path SVGFormattingContext::compute_path_for_text(SVGTextBox const& text_box)
{
auto& text_element = static_cast<SVG::SVGTextPositioningElement const&>(text_box.dom_node());
// FIXME: Use per-code-point fonts.
auto& font = text_box.first_available_font();
auto text_contents = text_element.text_contents();
Utf8View text_utf8 { text_contents };
@ -349,6 +350,7 @@ Gfx::Path SVGFormattingContext::compute_path_for_text_path(SVGTextPathBox const&
if (!path_or_shape)
return {};
// FIXME: Use per-code-point fonts.
auto& font = text_path_box.first_available_font();
auto text_contents = text_path_element.text_contents();
Utf8View text_utf8 { text_contents };