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

How to add Chinese fonts #34

Open
dinpingyu opened this issue Jan 1, 2023 · 4 comments
Open

How to add Chinese fonts #34

dinpingyu opened this issue Jan 1, 2023 · 4 comments

Comments

@dinpingyu
Copy link

Hello, do you know if you can add simplified Chinese fonts

@fornellas
Copy link
Owner

@dinpingyu I'm happy to merge a PR adding new unicode blocks here. From the available fonts, I'm not sure which of them support Chinese. I know for a fact that Adobe's doesn't. You may add extra fonts here, just make sure to check their licences and update LICENSE.md . Other than that, you'll need to add some tests here, check this doc as well.

There's also a hacking guide which you may find useful.

@songzhishuo
Copy link

sorry, I dont know how to add simplified Chinese fonts too. could you please give me a detailed graphic tutorial.ThankYou.!!!

@fornellas
Copy link
Owner

detailed graphic tutorial

Not sure what you mean by that...


There's a lot of documentation here
https://fornellas.github.io/eglib/
Which you should refer to get started.

You'll at least, have to:

A word of advice: the Unicode blocks for Chinese characters is quite big, I did a quick attempt of adding them, gcc would require 3G of RAM, and the generated object files were huge. Certainly, it would not be possible to use them at STM32F4, as none would have enough Flash memory for that. You'll likely need to refactor the font interface to allow font data to be pulled from other sources (eg: a uSD card) as well.

@songzhishuo
Copy link

Thank you very much for your reply, my English is not too good. I'd like to say tutorials. tutorials&Demo to use chinese font in eglib.

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

3 participants