mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibGfx+LibWeb: Remove DrawEmoji variant in GlyphRun
It was needed to support bitmap emoji rendering but no longer used after switching to Skia+HarfBuzz for text rendering.
This commit is contained in:
parent
22b8380e37
commit
ec315667f0
Notes:
github-actions[bot]
2024-09-06 12:31:34 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: ec315667f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1297
Reviewed-by: https://github.com/trflynn89
8 changed files with 37 additions and 72 deletions
|
@ -239,11 +239,11 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next_without_lookahead(
|
|||
};
|
||||
}
|
||||
|
||||
Vector<Gfx::DrawGlyphOrEmoji> glyph_run;
|
||||
Vector<Gfx::DrawGlyph> glyph_run;
|
||||
float glyph_run_width = 0;
|
||||
Gfx::for_each_glyph_position(
|
||||
{ 0, 0 }, chunk.view, chunk.font, [&](Gfx::DrawGlyphOrEmoji const& glyph_or_emoji) {
|
||||
glyph_run.append(glyph_or_emoji);
|
||||
{ 0, 0 }, chunk.view, chunk.font, [&](Gfx::DrawGlyph const& glyph) {
|
||||
glyph_run.append(glyph);
|
||||
},
|
||||
glyph_run_width);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue