Trigonometry can help
- Center a text on X-axis, coumpute its geometry’s bounding box, get box’s size.
- Having arc’s height and the text size, find arc’s radius by the equation for the circumcirle of isosceles triangle:
(a * a) / sqrt(4 * a * a - b * b)
, wherea
andb
are sides of the triangle. - Set Y-coordinate of each geometry’s vertex, interpolating it, having the circumcirle radius and vertex’ X-coordinate.