Open jianghai opened 1 year ago
怎么解决的?
Okay, I switched to a different canvas library and solved it. https://github.com/Brooooooklyn/canvas
Okay, I switched to a different canvas library and solved it. https://github.com/Brooooooklyn/canvas
其实是你字体包的问题,我换了一个字体就能显示中文了。好像是字体包的编码不兼容
Steps to Reproduce
output![out](https://user-images.githubusercontent.com/2820736/234834254-0f471cad-3fa3-422a-a901-6fda93d92f80.png)
However, everything is rendered correctly using the canvas API in Chrome browser, so it shouldn't be a font problem.
output![image](https://user-images.githubusercontent.com/2820736/235029802-f46571f2-f286-47bb-bb19-7cb7d681a6f1.png)
font name is from PostScript![image](https://user-images.githubusercontent.com/2820736/234834859-2df71542-29fd-45d1-b182-350e40e2ea68.png)
Your Environment