diff --git a/Userland/Libraries/LibGfx/TextLayout.cpp b/Userland/Libraries/LibGfx/TextLayout.cpp index f3f4a4d70ea..e580c0759c6 100644 --- a/Userland/Libraries/LibGfx/TextLayout.cpp +++ b/Userland/Libraries/LibGfx/TextLayout.cpp @@ -32,8 +32,6 @@ RefPtr shape_text(FloatPoint baseline_start, Utf8View string, Gfx::Fon Vector glyph_run; FloatPoint point = baseline_start; for (size_t i = 0; i < glyph_count; ++i) { - if (input_glyph_info[i].codepoint == '\t') - continue; auto position = point - FloatPoint { 0, font.pixel_metrics().ascent } diff --git a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp index d950452bf0a..ed657f7f270 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp @@ -285,6 +285,8 @@ Optional InlineLevelIterator::next_without_lookahead( } tab_stop_dist = tab_stop_dist * num_of_tabs; + // remove tabs, we don't want to render them when we shape the text + chunk.view = chunk.view.substring_view(num_of_tabs); x = tab_stop_dist.to_float(); }