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:
parent
8713968165
commit
d327104910
2 changed files with 65 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue