diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-03 20:09:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-03 22:35:13 +0100 |
commit | 926d5271b4228c4a4c1fd0ebdbdd96723b0f7150 (patch) | |
tree | 0b18d4803f2ada41d4f5dec900b13be4e745bf1e /Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp | |
parent | dc3bf32307085fee3cbbedfeb72ee10dc130d04c (diff) | |
download | serenity-926d5271b4228c4a4c1fd0ebdbdd96723b0f7150.zip |
LibWeb: Forward CanvasRenderingContext.strokeText() to fillText()
This is a hack until we get an actual text stroking implementation.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp index 2b3c44321d..bd6645295d 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp @@ -164,6 +164,12 @@ void CanvasRenderingContext2D::fill_text(const String& text, float x, float y, O did_draw(transformed_rect.to_type<float>()); } +void CanvasRenderingContext2D::stroke_text(String const& text, float x, float y, Optional<double> max_width) +{ + // FIXME: Stroke the text instead of filling it. + fill_text(text, x, y, max_width); +} + void CanvasRenderingContext2D::begin_path() { m_path = Gfx::Path(); |