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

non-Latin characters can't be displayed correctly in window title #5

Closed
hideyukn88 opened this issue Mar 24, 2021 · 5 comments
Closed
Assignees
Labels
bug Something isn't working fixinbound

Comments

@hideyukn88
Copy link
Member

Environment

Windows build number: 21340
Your Distribution version: Ubuntu
Your WSLg version: 0.2.13

Steps to reproduce

Install any application can display non-Latin characters to window title, such as Spotify.
(In this repro step, Spotify is used)
Install Spotify
Launch Spotify
Select song/artist which include non-Latin characters.
Window title should show song/artist name, but when those contains non-Latin characters, it shows as "box".

image

Expected behavior

non-Latin characters should be shown correctly.

@hideyukn88
Copy link
Member Author

This is because system-distro doesn't contain any non-Latin fonts

@viniciusjarina viniciusjarina transferred this issue from another repository Apr 19, 2021
@PhyX-Meow
Copy link

Same issue here.
But actually I have non-Latin fonts:

❯ fc-list | ag sourcehansans-normal
/usr/share/fonts/adobe-source-han-sans/SourceHanSans-Normal.ttc: 思源黑體 香港,Source Han Sans HC,Source Han Sans HC Normal,思源黑體 香港 Normal:style=Normal,Regular
/usr/share/fonts/adobe-source-han-sans/SourceHanSans-Normal.ttc: 思源黑体,Source Han Sans SC,Source Han Sans SC Normal,思源黑体 Normal:style=Normal,Regular
/usr/share/fonts/adobe-source-han-sans/SourceHanSans-Normal.ttc: Source Han Sans,源ノ角ゴシック,Source Han Sans Normal,源ノ角ゴシック Normal:style=Normal,Regular
/usr/share/fonts/adobe-source-han-sans/SourceHanSans-Normal.ttc: Source Han Sans K,본고딕,Source Han Sans K Normal,본고딕 Normal:style=Normal,Regular
/usr/share/fonts/adobe-source-han-sans/SourceHanSans-Normal.ttc: 思源黑體,Source Han Sans TC,Source Han Sans TC Normal,思源黑體 Normal:style=Normal,Regular

@hideyukn88
Copy link
Member Author

@PhyX-Meow , the window title bar is rendered by system-distro, thus fonts needs to be installed inside system-distro but currently system-distro is not user configurable (such as installing other international fonts).

@lwldcr
Copy link

lwldcr commented May 8, 2021

Same issue.
Is this problem going to be fixed in any later releases?

@hideyukn88
Copy link
Member Author

@PhyX-Meow, @lwldcr, FYI: we made a change to system-distro to load from Windows by #266, thus as long as fonts for required language are installed at Windows side, it will be used. (note: system-distro does not load fonts from user-distro). Also, by microsoft/weston-mirror#22, pango will fallback for international text. Thanks for trying out WSLg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixinbound
Projects
None yet
Development

No branches or pull requests

3 participants