Fonts/zh-cn: Difference between revisions
Created page with "并非所有字体都有 Nerd Fonts 变体,但幸运的是,您可以轻松地自行打补丁。 {{File|3=(pkgs.scientifica.overrideAttrs (o: { nativeBuildInputs = [ pkgs.nerd-font-patcher ]; postInstall = '' mkdir -p $out/share/fonts/truetype/{scientifica,scientifica-nerd} mv $out/share/fonts/truetype/*.ttf $out/share/fonts/truetype/scientifica/ for f in $out/share/fonts/truetype/scientifica/*.ttf; do nerd-font-patcher --complete --outputdir $ou..." Tags: Mobile edit Mobile web edit |
Created page with "=== 让 Fontconfig 识别 Nix 配置文件中的字体 ===" Tags: Mobile edit Mobile web edit |
||
| Line 92: | Line 92: | ||
}))|name=/etc/nixos/configuration.nix|lang=nix}} | }))|name=/etc/nixos/configuration.nix|lang=nix}} | ||
=== 让 Fontconfig 识别 Nix 配置文件中的字体 === | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Nix inserts its user profile path into <code>$XDG_DATA_DIRS</code>, which Fontconfig by default doesn't look in. This cause graphical applications like KDE Plasma not able to recognize the fonts installed via <code>nix-env</code> or <code>nix profile</code>. | Nix inserts its user profile path into <code>$XDG_DATA_DIRS</code>, which Fontconfig by default doesn't look in. This cause graphical applications like KDE Plasma not able to recognize the fonts installed via <code>nix-env</code> or <code>nix profile</code>. | ||