← 返回 Skills 市场
totongf

Install Chinese Fonts

作者 Fan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
242
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install install-chinese-fonts
功能描述
Install Chinese/CJK fonts on Linux hosts using distro packages and fontconfig verification. Use when Chinese text renders as tofu / missing glyphs, or when a...
使用说明 (SKILL.md)

Install Chinese Fonts

Prefer system packages. They are smaller, easier to update, and more reliable than downloading huge upstream font archives.

Quick start

Use the bundled script for repeatable installs:

bash scripts/install_chinese_fonts.sh --dry-run
bash scripts/install_chinese_fonts.sh
bash scripts/install_chinese_fonts.sh --verify-only

The script:

  • detects dnf / yum / apt-get
  • installs a sane default CJK font set
  • refreshes fontconfig with fc-cache -f
  • verifies visible families with fc-list

Recommended workflow

  1. Check whether Chinese fonts already exist.
  2. Install distro-packaged CJK fonts.
  3. Refresh font cache.
  4. Verify that fontconfig can see CJK families.
  5. Only if packages are unavailable or a specific family/version is required, fall back to upstream downloads such as Source Han Sans / 思源黑体.

Package-manager defaults

RHEL / Rocky / Alma / Anolis / CentOS 8+

Prefer Noto CJK packages:

sudo dnf -y install \
  google-noto-cjk-fonts \
  google-noto-sans-cjk-ttc-fonts \
  google-noto-serif-cjk-ttc-fonts
sudo fc-cache -f
fc-list | grep -Ei 'Noto Sans CJK|Noto Serif CJK|Source Han Sans|Source Han Serif' | head -40

Debian / Ubuntu

Prefer:

sudo apt-get update
sudo apt-get install -y fonts-noto-cjk
sudo fc-cache -f
fc-list | grep -Ei 'Noto Sans CJK|Noto Serif CJK|Source Han Sans|Source Han Serif' | head -40

Verification

Check whether Chinese fonts already exist:

fc-list :lang=zh family file | head -20

Check the specific families after installation:

fc-list | grep -Ei 'Noto Sans CJK|Noto Serif CJK|Source Han Sans|Source Han Serif' | head -40

Fallback: upstream manual install

Only use manual downloads when:

  • the distro repo lacks the needed package
  • a user explicitly asks for Source Han / 思源 family
  • a specific upstream version is required

Recommended source:

  • Adobe Source Han Sans releases on GitHub

Prefer language-specific archives over giant all-in-one bundles unless the user explicitly needs the full family.

After extraction, copy font files into a system font directory such as:

  • /usr/share/fonts/
  • /usr/local/share/fonts/

Then refresh cache:

fc-cache -f

Notes

  • On headless Linux servers, installing fonts is often enough for Chrome, Playwright, PDF renderers, screenshots, and document export to display Chinese correctly.
  • If an app still shows tofu boxes after installation, restart the app after fc-cache -f.
  • For system-wide installs, expect root privileges or a privileged shell.
安全使用建议
This skill appears coherent and focused on installing CJK fonts via your distro package manager. Before running: (1) inspect the script and run bash scripts/install_chinese_fonts.sh --dry-run to see planned commands; (2) run with --verify-only first to check current fonts; (3) be aware it will call apt-get/dnf and may require sudo/root—only run on machines where you want packages installed; (4) if you do not want the agent to act autonomously, disable autonomous invocation or require user confirmation; (5) on minimal containers or unsupported distros the script will exit and you may need a manual install per the SKILL.md.
功能分析
Type: OpenClaw Skill Name: install-chinese-fonts Version: 1.0.0 The skill bundle is a legitimate utility for installing Chinese/CJK fonts on Linux systems. It uses standard system package managers (apt, dnf, yum) and fontconfig utilities (fc-cache, fc-list) to manage Noto and Source Han fonts, with no evidence of malicious intent, data exfiltration, or unauthorized access in 'SKILL.md' or 'scripts/install_chinese_fonts.sh'.
能力评估
Purpose & Capability
The name/description, SKILL.md, and bundled script all focus on installing Chinese/CJK fonts via distro packages and fontconfig verification. The actions (detect package manager, apt-get/dnf installs, fc-cache, fc-list) are appropriate and proportionate to the stated goal.
Instruction Scope
Runtime instructions and the script limit themselves to checking fc-list, invoking the package manager, refreshing fontconfig, and verifying installed families. They do not read unrelated host files or exfiltrate data. The SKILL.md mentions GitHub as a manual fallback source but includes no automated download code.
Install Mechanism
There is no install spec (instruction-only) and the bundled script uses local package managers. No arbitrary URL downloads, archive extraction, or third-party installers are invoked by the script.
Credentials
The skill requests no environment variables or credentials. It requires privilege to run package-manager commands (documented in SKILL.md), which is appropriate for system-wide font installation.
Persistence & Privilege
The skill does not request persistent elevated privileges itself, but installing fonts system-wide requires root/sudo. The skill is user-invocable and not forced-always. If you allow autonomous agent invocation, the agent could run the install commands; consider disabling autonomous runs or reviewing actions before execution.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install install-chinese-fonts
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /install-chinese-fonts 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug install-chinese-fonts
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Install Chinese Fonts 是什么?

Install Chinese/CJK fonts on Linux hosts using distro packages and fontconfig verification. Use when Chinese text renders as tofu / missing glyphs, or when a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 242 次。

如何安装 Install Chinese Fonts?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install install-chinese-fonts」即可一键安装,无需额外配置。

Install Chinese Fonts 是免费的吗?

是的,Install Chinese Fonts 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Install Chinese Fonts 支持哪些平台?

Install Chinese Fonts 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Install Chinese Fonts?

由 Fan(@totongf)开发并维护,当前版本 v1.0.0。

💬 留言讨论