LibWeb: Use harfbuzz for canvas text layout

harfbuzz is already used for regular text layout in LibWeb, so
for consistency let's also switch canvas.
This commit is contained in:
Aliaksandr Kalenik 2024-09-03 20:44:11 +02:00 committed by Andreas Kling
commit a541a0792c
Notes: github-actions[bot] 2024-09-04 11:15:36 +00:00
2 changed files with 11 additions and 24 deletions

View file

@ -109,13 +109,8 @@ private:
virtual Gfx::Painter* painter_for_canvas_state() override { return painter(); }
virtual Gfx::Path& path_for_canvas_state() override { return path(); }
struct PreparedTextGlyph {
String glyph;
Gfx::IntPoint position;
};
struct PreparedText {
Vector<PreparedTextGlyph> glyphs;
RefPtr<Gfx::GlyphRun> glyph_run;
Gfx::TextAlignment physical_alignment;
Gfx::IntRect bounding_box;
};