-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nixos/steam: support using system fonts in Steam interface #302591
Conversation
Is it able to pick up noto-fonts-cjk or source-han-sans (they are the same project but packaged by google and adobe)? Wenquanyi is quite aged imo |
In comparison, noto and source han have 62 and 111 MB respectively. Does wenquanyi lack any code points that I didn't notice? |
Not really. I did hear some people complain that it didn't look good, or didn't work well on their high-resolution screens. Not a big problem compared to closure size. |
Also it seems that it is not completely impossible to load Chinese fonts. Some Chinese users reported that they were once able to load the system's Chinese fonts correctly, although some games were still missing fonts. But after recent update it's broken again. This problem may be caused by steam incompatible with variable fonts. The workaround they mentioned earlier is consistent with the changes you made in this PR: adding (non-variable) Chinese fonts to extraPackages. I don't currently have steam installed on my computer, so I'm sorry I can't help you. CC @A1ca7raz @ocfox @yilozt @oxalica @LostAttractor for reporting font problems in NixOS Chinese group. |
I don't think it's a variable font issue necessarily; it did used to pick up my system fonts until a few weeks ago. Now, even adding wqy to the system fonts doesn't help. Either way I will see if a minimal font package can be made, based on one of the newer projects. |
32bit support is needed for a lot of this.... age is an awkward thing :) |
I wonder if we could have the steam nixos module also pick up system fonts.... that seems like a more scalable and less closure bloat way to go about this. |
19d7339
to
2a1241b
Compare
Thanks, seems to work as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me, should be minimal closure increase since the fonts are already going to be be installed
It does not eval for me on 0c165de. Is the steam module tested?
|
You're right, |
That's on me. I should have attempted a system rebuild. |
Description of changes
Without this fix, all Chinese and Japanese text in the Steam interface display as boxes ("tofu").
As we use the existing fonts on the system, this avoids closure impact.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.