LibGfx+LibWeb: Use harfbuzz for text shaping

This replaces glyph positioning system with harfbuzz's shaping
algorithm. Adding support for bidirectional encoded text.
This commit is contained in:
BenJilks 2024-08-13 17:05:43 +01:00 committed by Alexander Kalenik
commit 0d63269cb7
Notes: github-actions[bot] 2024-08-16 20:29:29 +00:00
48 changed files with 365 additions and 333 deletions

View file

@ -375,7 +375,7 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode)
glyphs.remove(last_glyph_index - 1, remove_item_count);
glyphs.append(Gfx::DrawGlyph {
.position = last_glyph_position,
.code_point = ellipsis_codepoint });
.glyph_id = glyph_run->font().glyph_id_for_code_point(ellipsis_codepoint) });
}
}
}