Steam cannot display Asian fonts
I’m certain that I checked the relevant issues on GitHub, but the problem has not been resolved.
My configuration is:
# configuration.nix
i18n.defaultLocale = "zh_CN.UTF-8";
i18n.inputMethod = {
type = "fcitx5";
enable = true;
fcitx5 = {
waylandFrontend = true;
addons = with pkgs; [
qt6Packages.fcitx5-chinese-addons
];
};
};
fonts = {
packages = with pkgs; [
noto-fonts-color-emoji
noto-fonts-cjk-sans
noto-fonts-cjk-serif
wqy_zenhei
];
fontconfig.cache32Bit = true;
fontconfig.defaultFonts = {
emoji = [ "Noto Color Emoji" ];
monospace = [
"Noto Sans Mono CJK SC"
"Sarasa Mono SC"
"DejaVu Sans Mono"
];
sansSerif = [
"Noto Sans CJK SC"
"Source Han Sans SC"
"DejaVu Sans"
];
serif = [
"Noto Serif CJK SC"
"Source Han Serif SC"
"DejaVu Serif"
];
};
};
environment.systemPackages = with pkgs; [
git
home-manager
vim
firefox
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
fontPackages = with pkgs; [ noto-fonts-cjk-sans ];
extraPackages = with pkgs; [ noto-fonts-cjk-sans ];
};
Then I installed Steam in the “home.nix”.
home.packages = with pkgs; [
steam
steam-run
];
However, Asian fonts still cannot be displayed, like this:
Have I done something wrong? What should I do now?
