Skip to content

How to use flutter-pi to choose chinese #162

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

Closed
tsuiwade opened this issue Mar 24, 2021 · 5 comments
Closed

How to use flutter-pi to choose chinese #162

tsuiwade opened this issue Mar 24, 2021 · 5 comments

Comments

@tsuiwade
Copy link

First of all thank you for your dedication.

I followed your steps and used the gallery on my raspberrypi4.

When I select locale as chinese, the text will display ☐ ☐ ☐.

I am a newbie in this area, so I would like to ask for advice.

  1. I installed the Raspberry Pi desktop system, and there is no problem with Chinese fonts displayed on the desktop system.

  2. I followed your method and set the Raspberry Pi to start in the console mode. At this time, the Chinese I displayed is also ☐☐. I don't know if this is the problem.

  3. I have installed Chinese ttf according to the method on the Internet, and set the locale to zh_CN.utf8.

I don’t know what went wrong. Raspberry Pi system or console mode or flutter-pi or gallery program.
Thank you!

@ardera
Copy link
Owner

ardera commented Apr 3, 2021

I have no idea how flutter resolves fonts, but I think this not something related to flutter-pi. You can try opening an issue on the flutter repo or asking in the #help section of the flutter discord

@kokocooler2020
Copy link

@tsuiwade
I solved this problem by using Custom-Fonts in flutter, You can use Chinese font .ttf file,
I passed the test on Raspberry Pi 4B, It works great.

@ardera Thank you for your selfless dedication, this is great!

@ardera
Copy link
Owner

ardera commented Apr 10, 2021

@kokocooler2020 thx!
Closing this now

@ardera ardera closed this as completed Apr 10, 2021
@tsuiwade
Copy link
Author

Thank you!
I downloaded the 'FontCreator' software and checked the default GalleryIcons.ttf font, not including Chinese.
So I changed to a file with Chinese font and it was successful!

@toplinuxsir
Copy link

@tsuiwade
How to change ?
Thanks !

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

4 participants