1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

LibWeb: Forward CanvasRenderingContext.strokeText() to fillText()

This is a hack until we get an actual text stroking implementation.
This commit is contained in:
Andreas Kling 2022-02-03 20:09:57 +01:00
parent dc3bf32307
commit 926d5271b4
3 changed files with 8 additions and 0 deletions

View file

@ -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();