mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Add a naive implemention of CanvasRenderingContext2D::fill_text
This doesnt actually account for several unimplemented attributes (like ltr/rtl, alignment, etc) yet, so this should be expanded in the future.
This commit is contained in:
parent
a257ef0f35
commit
00114ab01d
Notes:
sideshowbarker
2024-07-18 20:18:00 +09:00
Author: https://github.com/IdanHo
Commit: 00114ab01d
Pull-request: https://github.com/SerenityOS/serenity/pull/6352
3 changed files with 20 additions and 0 deletions
|
@ -80,6 +80,8 @@ public:
|
|||
void rect(float x, float y, float width, float height);
|
||||
void stroke();
|
||||
|
||||
void fill_text(const String&, float x, float y, Optional<double> max_width);
|
||||
|
||||
// FIXME: We should only have one fill(), really. Fix the wrapper generator!
|
||||
void fill(Gfx::Painter::WindingRule);
|
||||
void fill(const String& fill_rule);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue