360 Secure SkillHub
360 安全技能中心

Font

通过 bash 脚本管理本机系统字体:列出与按名搜索已安装字体、以 ASCII 艺术或格式化文本预览示例、按字体分类给出配对建议、查看字体元数据,并把 ttf/otf/woff2 字体文件安装到用户字体目录并刷新缓存。命令均为本地执行,输出纯文本。

分类:效率
bytesagain
bytesagain
热度 3.97
最近更新 2026-03-18 04:46:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bytesagain/font
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
font
description
Work with system fonts. Use when listing, searching, previewing, getting metadata, finding pairings, or installing font files.
version
3.4.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["fonts","typography","design","font-management","preview"]

Font — Font Management Tool

Manage system fonts: list installed fonts, search by name, preview samples, get metadata, find pairings, and install new fonts.

Commands

list — List installed fonts

bash scripts/script.sh list [--family] [--limit N]

Shows all installed system fonts. Use --family to group by family. Use --limit N to cap output.

search — Search fonts by name

bash scripts/script.sh search "<query>"

Searches installed fonts matching the query string (case-insensitive).

preview — Preview a font sample

bash scripts/script.sh preview "<font_name>" ["sample text"]

Prints a text sample rendered as ASCII art banner using the specified font. Falls back to a formatted display if figlet is not available.

pair — Font pairing suggestions

bash scripts/script.sh pair "<font_name>"

Suggests complementary fonts for pairing based on font classification (serif, sans-serif, monospace, display).

info — Font metadata

bash scripts/script.sh info "<font_name_or_path>"

Shows metadata for a font: family, style, weight, file path, format, and character count.

install — Install a font file

bash scripts/script.sh install "<font_file_path>"

Installs a .ttf, .otf, or .woff2 font file to the user font directory and refreshes the font cache.

Output

All commands print plain text to stdout. Font operations use fc-list, fc-query, and fc-cache on Linux; system_profiler on macOS.

Requirements

  • bash 4+
  • python3 (standard library only)

Feedback

Report issues or suggestions: https://bytesagain.com/feedback/


Powered by BytesAgain | bytesagain.com