Closed ShamrockLee closed 4 years ago
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/guidelines-on-packaging-fonts/7683/4
- install wqy_zenhei.
How did you install wqy_zenheI? Did you add it to fonts.fonts
in /etc/nixos/configuration.nix
, or try to install it in some other way (e.g. by putting it in environment.systemPackages
or using nix-env
or nix-shell
)?
I added it to my /etc/nixos/configuration.nix
like this:
fonts.fonts = with pkgs; [
wqy_zenhei
];
Libreoffice is already in my environment.systemPackages
. After running nixos-rebuild switch
, libreoffice (I tested Writer) has three variants, "WenQuanYi Zen Hei", "WenQuanYi Zen Hei Mono", and "WenQuanYi Zen Hei Sharp".
How did you install wqy_zenheI? Did you add it to
fonts.fonts
in/etc/nixos/configuration.nix
, or try to install it in some other way (e.g. by putting it inenvironment.systemPackages
or usingnix-env
ornix-shell
)?
I didn't know about fonts.fonts
. Thanks a lot for your help!
Describe the bug Some fonts such as WQY ZenHei cannot be used in LibreOffice after these fonts are installed.
To Reproduce Steps to reproduce the behavior:
libreoffice
.wqy_zenhei
.Expected behavior Expected installed fonts such as WQY ZenHei to appear in the font choice box in LibreOffice Writer, LibreOffice Impress, and other pieces of software in LibreOffice suite.
Screenshots
Additional context Add any other context about the problem here.
Notify maintainers
@7c6f434c
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 4.19.132, NixOS, 20.09pre234194.8d05772134f (Nightingale)
yes
yes
nix-env (Nix) 2.3.7
"home-manager"
"nixos-20.09pre234194.8d05772134f"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information: