mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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:
parent
977e77bd4a
commit
a541a0792c
Notes:
github-actions[bot]
2024-09-04 11:15:36 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: a541a0792c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1271
2 changed files with 11 additions and 24 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue