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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5a755-65bc7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5a755-65bc7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?