mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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
|
@ -516,8 +516,8 @@ CanvasRenderingContext2D::PreparedText CanvasRenderingContext2D::prepare_text(By
|
|||
auto glyph_run = adopt_ref(*new Gfx::GlyphRun({}, *font, Gfx::GlyphRun::TextType::Ltr));
|
||||
float glyph_run_width = 0;
|
||||
Gfx::for_each_glyph_position(
|
||||
anchor, replaced_text.code_points(), *font, [&](Gfx::DrawGlyphOrEmoji const& glyph_or_emoji) {
|
||||
glyph_run->append(glyph_or_emoji);
|
||||
anchor, replaced_text.code_points(), *font, [&](Gfx::DrawGlyph const& glyph) {
|
||||
glyph_run->append(glyph);
|
||||
},
|
||||
glyph_run_width);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue