1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibGfx: Add Path::place_text_along(text, font)

This method returns a new path with the input text placed along the edge
of the original path.
This commit is contained in:
MacDue 2023-12-18 01:03:45 +00:00 committed by Andreas Kling
parent 8713968165
commit d327104910
2 changed files with 65 additions and 1 deletions

View file

@ -202,6 +202,8 @@ public:
Path stroke_to_fill(float thickness) const;
Path place_text_along(Utf8View text, Font const&) const;
private:
void approximate_elliptical_arc_with_cubic_beziers(FloatPoint center, FloatSize radii, float x_axis_rotation, float theta, float theta_delta);