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

@ -200,7 +200,6 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next_without_lookahead(
Gfx::for_each_glyph_position(
{ 0, 0 }, chunk.view, chunk.font, [&](Gfx::DrawGlyphOrEmoji const& glyph_or_emoji) {
glyph_run.append(glyph_or_emoji);
return IterationDecision::Continue;
},
Gfx::IncludeLeftBearing::No, glyph_run_width);