opcon/QuickFont

Is it possible to support Chinese rendering?

Opened this issue · 3 comments

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

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: #41 (comment) 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

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

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