opcon / QuickFont

A Modern OpenGL Font Rendering Library for OpenTK
https://github.com/opcon/QuickFont
MIT License
83 stars 25 forks source link

Is it possible to support Chinese rendering? #48

Open feifeizuo opened 4 years ago

feifeizuo commented 4 years ago

Hi, This is a wonderful library. I want use it to render Chinese. But it seems characterset don't containt chinese. So is it possible to support chinese characterset ? Thanks.

opcon commented 4 years ago

Hi @feifeizuo,

Currently QuickFont does not support loading characters on demand. Instead, all the desired characters are loaded into memory when the QFont object is created. If you need only some Chinese characters, then you can specify them manually, see my reply to a previous issue here: https://github.com/opcon/QuickFont/issues/41#issuecomment-402940001 for some more information on this.

The correct way to render Chinese characters is to load them on demand, when the program needs to draw them. This on-the-fly loading could be implemented into QuickFont, but is not currently. I am happy to point you in the right direction / answer any questions you have about doing this.

Cheers

feifeizuo commented 4 years ago

Hi @opcon

Thanks for you reply. I will learn the font rendering information, read quickfont source code. And then think about how doing this.

opcon commented 4 years ago

No worries! If you have questions about the architecture of QuickFont, I'm happy to help!