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

FIX(client, theme): Chinese characters not displayed properly (scss modified) #6200

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

alpzmj9
Copy link
Contributor

@alpzmj9 alpzmj9 commented Aug 30, 2023

This commit adds some font families to the default themes that improve the displaying of Chinese characters.

Added Windows(Microsoft YaHei), Linux(Noto Sans SC), Mac(PingFang SC) default Chinese fonts in the default theme's font-family, which can avoid the system calling fonts such as Simsun by default and bring bad display effect. I put it in front of Arial and sans-serif, and behind other fonts, so as to avoid affecting the display of non-CJK fonts on the operating system.

I modified the scss code as requested, and I'm sorry to restart a pull request again because I'm not familiar with using git yet.

Checks

This commit adds some font families to the default themes that improve the displaying of Chinese characters.

Added Windows(Microsoft YaHei), Linux(Noto Sans SC), Mac(PingFang SC) default Chinese fonts in the default theme's font-family, which can avoid the system calling fonts such as Simsun by default and bring bad display effect.
I put it in front of Arial and sans-serif, and behind other fonts, so as to avoid affecting the display of non-CJK fonts on the operating system.
@Hartmnt
Copy link
Member

Hartmnt commented Aug 30, 2023

@Krzmbrzl Krzmbrzl added client ui bug A bug (error) in the software labels Dec 30, 2023
Copy link
Member

@Krzmbrzl Krzmbrzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hartmnt I checked the stringification of boolean values and it seems like different Sass implementations handle this differently. E.g. ruby-sass adds quotes (and also makes additional formatting changes) whereas the (seemingly) official reference implementation written in Dart as well as the Node.js package (which I think is simply a transpiled version of the Dart implementation) remove the quotes.
Thus, I think not having the quotes is fine and since that's what the reference implementation does in its latest release, I think we can try to stick to that.

@Krzmbrzl Krzmbrzl merged commit 71fd785 into mumble-voip:master Dec 30, 2023
3 checks passed
@Krzmbrzl
Copy link
Member

@alpzmj9 thank you for fixing this and sorry for the long response time of mine 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug (error) in the software client ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants