-
Notifications
You must be signed in to change notification settings - Fork 468
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
Chinese Font Support #1937
Comments
maybe other language should also be support, not only Chinese. :) |
This is bad; thanks for reporting, folks. We will handle it. |
I think this can be solved without adding font files to the project, by calling the system default font files directly based on the system locale. I can try to solve this problem |
@MrChenhtlss I submitted a PR, remember to update it when I wait for the merge to be posted :) |
Describe the problem
client latest version (v0.27.4) added the Network Routes Panel, when there is Chinese will display garbled code, this is because Fyne does not support Chinese fonts by default, Fyne's solution to this issue
To Reproduce
Steps to reproduce the behavior:
Expected behavior
recommended to use noto fonts (OFL) for commercial licensing reasons.
NetBird version
0.27.4
Screenshots
![image](https://private-user-images.githubusercontent.com/10323352/328477333-bb006e07-1570-4ccc-98f6-e72b95e05c4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTc0OTQsIm5iZiI6MTcyNTE5NzE5NCwicGF0aCI6Ii8xMDMyMzM1Mi8zMjg0NzczMzMtYmIwMDZlMDctMTU3MC00Y2NjLTk4ZjYtZTcyYjk1ZTA1YzRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDEzMjYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3OWQ0NmUzOThiMzM1M2U3ZGRkZjNiZTVjYzRmMzUxY2U5NTRhMGRmZWMyNzZhZDM0OTRhZTg4N2E5NjFiNGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TyrXLw1jpJNzecIXBiNx8voOBSLrVcjOx7a3ayz285g)
0.27.4 version
local debug version
![image](https://private-user-images.githubusercontent.com/10323352/328478049-99b9ec68-4c6e-4341-80ed-8e606cb3afc0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTc0OTQsIm5iZiI6MTcyNTE5NzE5NCwicGF0aCI6Ii8xMDMyMzM1Mi8zMjg0NzgwNDktOTliOWVjNjgtNGM2ZS00MzQxLTgwZWQtOGU2MDZjYjNhZmMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDEzMjYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1MmZiNDMyZDA4NTczOGZiYjZlNmJkNjYxYjUyMjkxZDAyYmIwZGYxMzRkNzJjZGU1MDMyNjRiYmYyZTUyNWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.83xaZtcpWVxHlhLbqAOAkpnz3RQPj1M8IQuZsxJ1LgM)
Additional context
But I set the FYNE_FONT environment variable before running Netbird UI, which can solve the problem of garbled code, the code is very simple to add the init method (currently the package for internal employees is done this way)
The text was updated successfully, but these errors were encountered: