mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
LibWeb: Use Utf16String in CanvasText APIs
This is prep work for getting rid of UTF-8 text shaping.
This commit is contained in:
parent
5bd867f1dc
commit
434bf30cda
Notes:
github-actions[bot]
2025-09-21 11:24:04 +00:00
Author: https://github.com/awesomekling
Commit: 434bf30cda
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6254
Reviewed-by: https://github.com/tcl3
6 changed files with 26 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue