mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +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
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