Files
font2pic/run.sh
2026-02-12 09:56:46 +08:00

14 lines
381 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

source .venv/bin/activate
lsof -ti:5173,5174,5175,5176 | xargs kill -9 2>/dev/null;
python font2svg.py --fontdir font --text "星程紫微" --outdir svg
# 新增字体放在fonts目录下运行以下命令fonts.json会被更新
npm run prepare-fonts
# 查看请求日志 MacMini
tail -f /tmp/font2svg-api.log
# 查看请求日志 Linux
sudo journalctl -u font2svg-api -f