用 fc-list 列出系统已安装字体

用 fc-list 枚举已安装字体并找出准确的字体族名称,用于终端、CSS 或文档字体设置。

Linux字体桌面fc-list 字体列表终端低风险
运行 `fc-list : family | sort -u` 列出所有字体族,或用 `fc-list | grep -i mono` 搜索等宽字体。

01命令

命令
$ fc-list : family | sort -u | grep -i noto

02作用说明

fc-list 会输出每个字体文件的路径、字体族和样式——字体族字符串就是填入设置里的名称(如 'JetBrains Mono'、'Noto Sans CJK SC')。可以按模式查询:`fc-list ':charset=4e2d'` 列出包含某个字符的字体(4e2d 是“中”字),排查文档显示方框(豆腐块)时特别有用。把 TTF/OTF 文件放进 ~/.local/share/fonts/ 后运行 `fc-cache -f` 即可安装新字体。

03风险

风险低风险
使用条件fontconfig (fc-list is preinstalled on all desktop distros). Full details for one font: `fc-list -v "family=Noto Sans"`; match by style: `fc-list :family="Noto Sans CJK SC"`.

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • fc-list(1) - Linux manual page
    Ubuntu Manpages · technical · 2026-09-17
    依据: fc-list lists fonts matching a pattern and displays family, style and file information for each match.

最后验证: 2026-09-18 · 分类: 系统与设置

06相关方案