LibWeb: Store FontCascadeList instead of Font in CanvasState

This is required to implement per-glyph font fallbacks in the upcoming
changes.
This commit is contained in:
Aliaksandr Kalenik 2025-04-19 18:34:53 +02:00 committed by Andreas Kling
commit 2c64c6d773
Notes: github-actions[bot] 2025-04-21 07:52:30 +00:00
4 changed files with 22 additions and 20 deletions

View file

@ -144,7 +144,7 @@ private:
void did_draw(Gfx::FloatRect const&);
RefPtr<Gfx::Font const> current_font();
RefPtr<Gfx::FontCascadeList const> font_cascade_list();
PreparedText prepare_text(ByteString const& text, float max_width = INFINITY);