Fonts/zh-cn: Difference between revisions

ZhX589 (talk | contribs)
Created page with "要解决此问题,请将 <code>100-nix.conf</code> 文件添加到 Fontconfig 用户配置目录中(通常为 <code>$XDG_CONFIG_HOME/fontconfig/conf.d</code>): <syntaxhighlight lang="xml"> <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> <fontconfig> <!-- NIX_PROFILE 是您的 Nix 配置文件的路径。详见 Nix 参考手册。 --> <dir>NIX_PROFILE/lib/X11/fonts</dir> <dir>NIX_PROFILE/share/fonts</dir> </fontconfig> </syntax..."
ZhX589 (talk | contribs)
Created page with "或者,在您的 Home Manager 配置 <code>opt-fonts.fontconfig.enable</code> 中启用 Fontconfig 配置。"
Line 107: Line 107:
然后运行 <code>fc-cache</code>。
然后运行 <code>fc-cache</code>。


<div lang="en" dir="ltr" class="mw-content-ltr">
或者,在您的 Home Manager 配置 <code>opt-fonts.fontconfig.enable</code> 中启用 Fontconfig 配置。
Alternatively, [https://nix-community.github.io/home-manager/options.xhtml#opt-fonts.fontconfig.enable enable Fontconfig configuration] in your Home Manager configuration.
</div>


<span lang="en" dir="ltr" class="mw-content-ltr">=== Imperative installation of user fonts ===</span>
<span lang="en" dir="ltr" class="mw-content-ltr">=== Imperative installation of user fonts ===</span>