File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1207,6 +1207,7 @@ void BlockFormattingContext::ensure_sizes_correct_for_left_offset_calculation(Li
1207
1207
if (marker_text.is_empty ()) {
1208
1208
marker_state.set_content_width (image_width + default_marker_width);
1209
1209
} else {
1210
+ // FIXME: Use per-code-point fonts to measure text.
1210
1211
auto text_width = marker.first_available_font ().width (marker_text);
1211
1212
marker_state.set_content_width (image_width + CSSPixels::nearest_value_for (text_width));
1212
1213
}
Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ void SVGFormattingContext::layout_nested_viewport(Box const& viewport)
307
307
Gfx::Path SVGFormattingContext::compute_path_for_text (SVGTextBox const & text_box)
308
308
{
309
309
auto & text_element = static_cast <SVG::SVGTextPositioningElement const &>(text_box.dom_node ());
310
+ // FIXME: Use per-code-point fonts.
310
311
auto & font = text_box.first_available_font ();
311
312
auto text_contents = text_element.text_contents ();
312
313
Utf8View text_utf8 { text_contents };
@@ -349,6 +350,7 @@ Gfx::Path SVGFormattingContext::compute_path_for_text_path(SVGTextPathBox const&
349
350
if (!path_or_shape)
350
351
return {};
351
352
353
+ // FIXME: Use per-code-point fonts.
352
354
auto & font = text_path_box.first_available_font ();
353
355
auto text_contents = text_path_element.text_contents ();
354
356
Utf8View text_utf8 { text_contents };
You can’t perform that action at this time.
0 commit comments