Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to support Chinese rendering? #48

Open
feifeizuo opened this issue Feb 10, 2020 · 3 comments
Open

Is it possible to support Chinese rendering? #48

feifeizuo opened this issue Feb 10, 2020 · 3 comments

Comments

@feifeizuo
Copy link

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
Copy link
Owner

opcon commented Feb 10, 2020

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

@feifeizuo
Copy link
Author

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
Copy link
Owner

opcon commented Feb 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants