Fonts/zh-cn: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

9 July 2026

  • curprev 13:0213:02, 9 July 2026 ZhX589 talk contribs 19,965 bytes −106 Created page with "=== 在 <code>fonts.fontconfig.defaultFonts.monospace</code> 中可以使用哪些字体名称? ==="
  • curprev 13:0213:02, 9 July 2026 ZhX589 talk contribs 20,071 bytes −135 Created page with "有关合适的替代字体列表:" Tags: Mobile edit Mobile web edit
  • curprev 13:0113:01, 9 July 2026 ZhX589 talk contribs 20,206 bytes −56 Created page with "{{File|3=fonts = { packages = with pkgs; [ gyre-fonts ]; fontconfig = { localConf = '' <!-- use a less horrible font substition for pdfs such as https://www.bkent.net/Doc/mdarchiv.pdf --> <match target="pattern"> <test qual="any" name="family"><string>NewCenturySchlbk</string></test> <edit name="family" mode="assign" binding="same"><string>TeX Gyre Schola</string></edit> </match> ''; }; };|name=/etc/nixos/configuration.nix|..." Tags: Mobile edit Mobile web edit
  • curprev 13:0113:01, 9 July 2026 ZhX589 talk contribs 20,262 bytes −41 Created page with "将此添加到您的 <code>/etc/nixos/configuration.nix</code> 中,应能促使其改用更相似(且更美观)的衬线字体 ''Schola'' 作为替代:" Tags: Mobile edit Mobile web edit
  • curprev 13:0113:01, 9 July 2026 ZhX589 talk contribs 20,303 bytes −76 Created page with "有时,由于不恰当的替换,文档可能会出现字距不佳或字间距难以阅读的问题。 例如,Okular 可能在“文档属性”对话框中显示已将 DejaVu Sans Mono(一种无衬线字体)替换为 "NewCenturySchlbk"。运行 <code>fc-match NewCenturySchlbk</code> 会显示类似信息。"
  • curprev 13:0113:01, 9 July 2026 ZhX589 talk contribs 20,379 bytes −58 Created page with "=== 使用自定义字体替换 ===" Tags: Mobile edit Mobile web edit
  • curprev 13:0113:01, 9 July 2026 ZhX589 talk contribs 20,437 bytes −65 Created page with "=== 为不同语言设置多种字体 ==="
  • curprev 13:0013:00, 9 July 2026 ZhX589 talk contribs 20,502 bytes −36 Created page with "NixOS 的 [https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=fonts.fontconfig <code>fonts.fontconfig</code>] 配置项(点击查看完整列表!)用于处理 fontconfig 选项。部分选项已被 nix 很好地封装;此外始终可以使用 <code>localConf</code> 直接编写 XML 配置。"
  • curprev 13:0013:00, 9 July 2026 ZhX589 talk contribs 20,538 bytes −61 Created page with "== 配置字体 =="
  • curprev 13:0013:00, 9 July 2026 ZhX589 talk contribs 20,599 bytes −66 Created page with "=== 命令式安装用户字体 ==="
  • curprev 13:0013:00, 9 July 2026 ZhX589 talk contribs 20,665 bytes −117 Created page with "或者,在您的 Home Manager 配置 <code>opt-fonts.fontconfig.enable</code> 中启用 Fontconfig 配置。"
  • curprev 12:5912:59, 9 July 2026 ZhX589 talk contribs 20,782 bytes −47 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..."
  • curprev 12:5812:58, 9 July 2026 ZhX589 talk contribs 20,829 bytes −50 Created page with "Nix 会将其用户配置文件路径插入到 <code>$XDG_DATA_DIRS</code> 中,而 Fontconfig 默认并不在此路径中查找。这会导致 KDE Plasma 等图形应用程序无法识别通过 <code>nix-env</code> 或 <code>nix profile</code> 安装的字体。"
  • curprev 12:5812:58, 9 July 2026 ZhX589 talk contribs 20,879 bytes −59 Created page with "=== 让 Fontconfig 识别 Nix 配置文件中的字体 ===" Tags: Mobile edit Mobile web edit
  • curprev 12:5812:58, 9 July 2026 ZhX589 talk contribs 20,938 bytes −46 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
  • curprev 12:5812:58, 9 July 2026 ZhX589 talk contribs 20,984 bytes −128 Created page with "要安装来自 Nerd Fonts 仓库 的所有字体,只需将所有独立的包添加到 NixOS 配置中即可。以下代码行通过搜索 `nerd-fonts` 属性下的所有派生,精确实现这一目的:{{file|||<nowiki> { fonts.packages = builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts); }"
  • curprev 12:5712:57, 9 July 2026 ZhX589 talk contribs 21,112 bytes −47 Created page with "=== 将 nerdfonts 补丁应用到字体中 ==="
  • curprev 12:5612:56, 9 July 2026 ZhX589 talk contribs 21,159 bytes −56 Created page with "{ fonts.packages = [ # ... some fonts ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts); } </nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}" Tags: Mobile edit Mobile web edit
  • curprev 12:5612:56, 9 July 2026 ZhX589 talk contribs 21,215 bytes −45 Created page with "# 或者如果您已经设置了 fonts.packages 集合" Tags: Mobile edit Mobile web edit
  • curprev 12:5512:55, 9 July 2026 ZhX589 talk contribs 21,260 bytes −13 Created page with "==== 安装所有 <code>Nerd Fonts</code> ====" Tags: Mobile edit Mobile web edit
  • curprev 12:5412:54, 9 July 2026 ZhX589 talk contribs 21,273 bytes −75 Created page with "可用的 Nerd Fonts 子包可以通过在 NixOS Package Search 中搜索 {{nixos:package|nerd-fonts.*}} 来列出,或者运行以下命令:<syntaxhighlight lang="console"> $ nix-instantiate --eval --expr "with (import <nixpkgs> {}); lib.attrNames (lib.filterAttrs (_: lib.isDerivation) nerd-fonts)" </syntaxhighlight>" Tags: Mobile edit Mobile web edit
  • curprev 12:5412:54, 9 July 2026 ZhX589 talk contribs 21,348 bytes −63 Created page with "单个Nerd Fonts可以像这样安装:" Tags: Mobile edit Mobile web edit
  • curprev 12:5312:53, 9 July 2026 ZhX589 talk contribs 21,411 bytes −57 Created page with "=== 安装 <code> Nerd Fonts </code> ==="
  • curprev 12:5312:53, 9 July 2026 ZhX589 talk contribs 21,468 bytes −77 Created page with "您可以将 TexLive 包中的 `fonts` 属性传递给 `fonts.packages`,从而使用来自 CTAN 和 TexLive 的所有 TeX/LaTeX 字体:"
  • curprev 12:5312:53, 9 July 2026 ZhX589 talk contribs 21,545 bytes −50 Created page with "=== 使用来自 TexLive 的字体 ===" Tags: Mobile edit Mobile web edit
  • curprev 12:5112:51, 9 July 2026 ZhX589 talk contribs 21,595 bytes −58 Created page with "* <code>fonts.enableDefaultPackages</code>:当设为 <code>true</code> 时,会安装一些“基础”字体以提供合理的 Unicode 覆盖范围。如果您不确定自己可能会阅读哪些语言,可将其设为 <code>true</code>。 * <code>fonts.enableGhostscriptFonts</code>:影响 <code>ghostscript</code> 包。Ghostscript 为标准的 PostScript 字型打包了一些 URW 字体。若设为 <code>true</code>,这些字体将对 GUI 应用程序可见。..." Tags: Mobile edit Mobile web edit
  • curprev 12:5112:51, 9 July 2026 ZhX589 talk contribs 21,653 bytes +3 No edit summary Tags: Mobile edit Mobile web edit
  • curprev 12:4812:48, 9 July 2026 ZhX589 talk contribs 21,650 bytes −55 Created page with "=== 字体的简写形式 ===" Tags: Mobile edit Mobile web edit
  • curprev 12:4812:48, 9 July 2026 FuzzyBot talk contribs 21,705 bytes +3,860 Updating to match new version of source page Tags: Mobile edit Mobile web edit
  • curprev 05:3905:39, 9 July 2026 ZhX589 talk contribs 17,845 bytes −82 Created page with "尽管这些字体包看起来与普通包无异,但仅将它们添加到 `environment.systemPackages` 并不会让应用程序能够访问这些字体。要实现这一点,应将它们放入 NixOS 的 `[https://search.nixos.org/options?channel=unstable&show=fonts.packages&from=0&size=50&sort=relevance&type=packages&query=fonts.packages fonts.packages]` 选项列表中。" Tags: Mobile edit Mobile web edit
  • curprev 05:3805:38, 9 July 2026 ZhX589 talk contribs 17,927 bytes −60 Created page with "NixOS 有许多可用的字体包,你可以轻松地在这里搜索并使用他们:"
  • curprev 05:3705:37, 9 July 2026 ZhX589 talk contribs 17,987 bytes −62 Created page with "在 NixOS 上安装字体"
  • curprev 05:3705:37, 9 July 2026 ZhX589 talk contribs 18,049 bytes −77 Created page with "NixOS 处理字体就像处理系统中许多不同部分一样:除非明确标记为环境的一部分,否则它们不会出现在环境中。本指南涵盖字体的安装、配置和故障排除。"
  • curprev 05:3605:36, 9 July 2026 ZhX589 talk contribs 18,126 bytes +18,126 Created page with "字体"