nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

Help. how to render chinese ?

Open LightSun opened this issue 5 years ago • 2 comments

Nanovg is a good project. I am using it. but when i render chinese. it display error. I had tried a chinese ttf file and also tried freetype.

c828847945cb3b57bf685a0e789f6e9

Could anyone help me ?

LightSun avatar Dec 09 '20 09:12 LightSun

1.use chinese font, like simsun.ttf (not .ttc) 2.use string like : u8"中文" ,this is supported since vs2015

wtjcn avatar Dec 17 '21 15:12 wtjcn

Hi, it is old, but I faced this issue just now. This project helped me a lot. They merged fonts into one file, now I can render latin, cyrilic, greek, korean, chinese, japanese etc characters loading one ttf

tazok81 avatar Dec 28 '23 07:12 tazok81