8000 GitHub - happyjake/font-tools
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

happyjake/font-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Font Tools

工具集用于处理TTF字体文件,包括预览生成、信息修改、字体合并等功能。

系统要求

  • Python 3.9+

安装

  1. 克隆仓库:
git clone https://github.com/happyjake/font-tools.git
cd font-tools
  1. 创建虚拟环境:
python -m venv venv
source ./venv/bin/activate
  1. 安装依赖::
pip install -r requirements.txt

For Termux

If you encounter an error while installing dependencies with pip, try installing libjpeg-turbo:

pkg in libjpeg-turbo

使用方法

./脚本选择.sh

常见问题 / Troubleshooting

Pillow _imagingft Import Error

如果遇到以下错误 / If you encounter this error:

ImportError: cannot import name '_imagingft' from 'PIL' (/data/data/com.termux/files/home/font-tools/venv/lib/python3.12/site-packages/PIL/__init__.py)

解决方法 / Solution:

  1. 安装系统依赖 / Install system dependencies:
pkg install libjpeg-turbo freetype python-pillow
  1. 重置虚拟环境 / Reset virtual environment:
deactivate
source venv/bin/activate
  1. 重新安装Pillow / Reinstall Pillow:
pip uninstall Pillow
pip install --no-cache-dir Pillow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0