mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +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
|
@ -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) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue