- Streamline .gitignore to focus on essential patterns (dependencies, build outputs, environment, IDE, OS, logs) - Remove redundant entries and consolidate related ignore rules - Simplify README.md by removing detailed usage examples and focusing on core setup steps - Reorganize font file structure with new npm-package layout - Add Cjkfqlt-Regular.js font to npm-package distribution - Update package.json and fonts.json metadata - Reorganize Python scripts with new README documentation - Rename and restructure font analysis and subset creation scripts - Update convert.js script for improved font conversion workflow - Add package-lock.json for dependency management - Reduce documentation verbosity while maintaining essential information for quick start |
||
|---|---|---|
| .. | ||
| analyze-fonts.py | ||
| create-font-subsets.py | ||
| README.md | ||
Python Scripts
字体分析和子集化脚本
脚本说明
analyze-fonts.py- 分析字体并使用 AI 生成规范化名称create-font-subsets.py- 创建字体子集(full/en/zh/zh-common)
使用方式
# 分析字体
python3 python-scripts/analyze-fonts.py
# 创建子集
python3 python-scripts/create-font-subsets.py
输出
metadata/font-mapping.json- 字体映射和元数据fonts-subset/- 子集化后的字体文件