mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
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:
parent
0d05ab2ad0
commit
0d63269cb7
Notes:
github-actions[bot]
2024-08-16 20:29:29 +00:00
Author: https://github.com/BenJilks
Commit: 0d63269cb7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1071
Reviewed-by: https://github.com/kalenikaliaksandr
48 changed files with 365 additions and 333 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue