fonts-packages/python-scripts
bo.yu b3d1713795 chore(project-setup): Reorganize project structure and simplify documentation
- 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
2025-11-25 15:00:50 +08:00
..
analyze-fonts.py chore(project-setup): Reorganize project structure and simplify documentation 2025-11-25 15:00:50 +08:00
create-font-subsets.py chore(project-setup): Reorganize project structure and simplify documentation 2025-11-25 15:00:50 +08:00
README.md chore(project-setup): Reorganize project structure and simplify documentation 2025-11-25 15:00:50 +08:00

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/ - 子集化后的字体文件