Update documentation and scripts for font addition process; introduce uv run add-font CLI command for streamlined font management. Enhance formula generation with improved class name formatting and validation steps. Remove outdated font formula files.
This commit is contained in:
parent
69d8156b09
commit
56b64d0b34
266 changed files with 1187 additions and 8145 deletions
4
.github/copilot-instructions.md
vendored
4
.github/copilot-instructions.md
vendored
|
|
@ -12,6 +12,6 @@ applyTo: "**"
|
|||
|
||||
## Rules
|
||||
- Do **not** edit `Formula/*.rb` by hand. They are generated by `.fontfoldercleanup/create_homebrew_formula.py`.
|
||||
- To add a font: add folder `font_files/font-<name>/`, run `cleanup_font_folders.py` then `create_homebrew_formula.py`.
|
||||
- Scripts are Python 3 in `.fontfoldercleanup/`: `cleanup_font_folders.py`, `create_homebrew_formula.py`.
|
||||
- To add a font: run `uv run add-font <path_or_name>` (or add folder `font_files/font-<name>/`, run `cleanup_font_folders.py` then `create_homebrew_formula.py`). Validate with `uv run pytest tests/`.
|
||||
- Scripts: Python 3 in `.fontfoldercleanup/` (cleanup_font_folders.py, create_homebrew_formula.py). CLI: `uv run add-font`. Tests: `uv run pytest tests/`.
|
||||
- All font folders must use the `font-` prefix; only `.ttf` in ttf/, `.otf` in otf/, web fonts in web/, everything else in other_files/.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue