The application discloses a path-based deformation text
layout rendering method, device and equipment, the method receives
user input text content and corresponding deformation intensity parameters; the text content adopts non-automatic line breaking for horizontal
layout; according to the deformation intensity parameters, the curvature
radius of the target path is dynamically calculated through the Newton iteration method; the origin coordinates of the text content characters are mapped to the target path, and the rotation angle of each character is calculated; when the total width of the text exceeds the circumference of the target path, multiple circle paths are automatically generated and the text is distributed; the final
graphics are output through a cross-platform rendering engine, ensuring the consistency of each platform display. The application can solve the problems of path adjustment inconvenience, cross-platform inconsistency and inability to
handle super-long text in the prior art. With the application, designers only need to adjust the intensity value to realize real-time preview of the bending effect of the text along the dynamic path, and all devices and browsers are compatible, so that the design efficiency is greatly improved.