-
Notifications
You must be signed in to change notification settings - Fork 89
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
Application: add Chinese shared font support #49
Conversation
Thanks for the PR! I have a concern about memory usage (that I already had for the Korean font at the time). How large is the Chinese font? Does it contain latin characters as well? My idea would be to only load Chinese font if the system language is Chinese (same for Korean). What do you think? |
Agree with loading the font if the system language is so. (But I am not familiar with the API) |
And can we avoid loading the Latin font as well? Or do you need both on
Chinese systems?
Le 19 juillet 2020 11:18:54 wwwwwwzx <notifications@github.com> a écrit :
…
Agree with loading the font if the system language is so. (But I am not
familiar with the API)
Have done this for Plutonium: ***@***.***
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Latin font should always be loaded. In EdiZon for example I always fall back to thr English translation if there's none in the currently selected language. That way you can have translations but don't make your app completely unusable if a few important translations are missing |
@WerWolv yeah but what if the Chinese font also contains [A-Za-z0-9]? We don't need to load both then, do we? |
Does it have it? I never checked. If so then yeah. |
Well then I guess we can start by only loading Chinese and Korean if the system language needs it. @wwwwwwzx can you make the change in your PR? |
That looks nice! Can you ensure that all latin characters are present, including accentued ones? It's for @WerWolv Also I'm going to ask you to run |
Uh, no 😅 Please run it using the script we provide, it has our configuration with our code style in it. Then we need to always load regular latin font as well, which is what you did in the commit. However it seems like you catched junk from master while rebasing, can you fix that please? |
I did run your script. And at first, the error is the following (I have 10.0.0 installed): |
Oh shoot I misunderstood the first time. Let me run clang-format on the entirety of master, that way it doesn't interfere with your changes. Sorry about that. |
Uh, conflicts are still there. Sorry I am not familiar with git commands. |
You need to rebase on the master branch, they should resolve themselves If not, git will prompt you to fix them and it should be fairly easy |
Works for traditional Chinese characters Load Asian font according to the system language setting
Hi, sorry for the delay! I do not accept contributions for master anymore so I will be closing this PR. #76 aims to reimplement what you did in the rework branch, if you want to have a look. |
also works for traditional Chinese characters.
issue #26