googlefonts / googlefonts/ots-python

Add a commandline entry point

Đang mở
#25 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
10
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It would be very useful for CI use and people that don't have C compilers lying around to be able to conveniently grab a pre-compiled binary with `uvx opentype-sanitizer` or `pipx run opentype-sanitizer` etc.

My current hacky workaround is:
```shell
# Install opentype-sanitizer in a venv or something, then
python -c "import ots,sys;sys.exit(ots.sanitize(*sys.argv[1:]).returncode)" *.ttf
```

I tried to add this myself ([commit](https://github.com/daltonmaag/ots-python/commit/6ad52e6707a86f24e9c473277dfbb48d79a5ca55)) since there's already a `__main__.py` to point it at, but I think because it's been a while since there's been a release on this project a fair bit of the build process has rotted and I got lost in it quite quickly. `setup.py`s are not one of my strong points 😅

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.