What if you use js to preview fonts and convert fonts on-line?

problem description

the goal requirement is: the customer enters the text, and then he can choose different art fonts [not commonly used fonts], and the effect can be previewed online.

the environmental background of the problems and what methods you have tried

it seems unlikely to introduce these fonts into a web page because there are several Ms in a single font.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jun.29,2022

rendering as an image is not very good. The backend directly clips the font is a better choice https://github.com/2234839/we.... You can take a look at my implementation


this requirement. It seems that it still needs backend support.
the front end sends the text to the backend, and the backend renders the text into a picture. Pass it to the front end for display

Menu