LibWeb: Use Utf16String in CanvasText APIs

This is prep work for getting rid of UTF-8 text shaping.
This commit is contained in:
Andreas Kling 2025-09-19 12:21:20 +02:00 committed by Andreas Kling
commit 434bf30cda
Notes: github-actions[bot] 2025-09-21 11:24:04 +00:00
6 changed files with 26 additions and 26 deletions

View file

@ -17,9 +17,9 @@ class CanvasText {
public:
virtual ~CanvasText() = default;
virtual void fill_text(StringView, float x, float y, Optional<double> max_width) = 0;
virtual void stroke_text(StringView, float x, float y, Optional<double> max_width) = 0;
virtual GC::Ref<TextMetrics> measure_text(StringView text) = 0;
virtual void fill_text(Utf16String const&, float x, float y, Optional<double> max_width) = 0;
virtual void stroke_text(Utf16String const&, float x, float y, Optional<double> max_width) = 0;
virtual GC::Ref<TextMetrics> measure_text(Utf16String const&) = 0;
protected:
CanvasText() = default;