python implement that makes .ttf/.otf files to .jpg set JUST KOREAN
- Python 3.6
- Pillow 4.2.1
pip install -r requirements.txt
there are two example fonts (.ttf/.otf) in ttf_dir
ttf-to-jpg.py [-h] [--ttf_dir TTF_DIR] [--jpg_dir JPG_DIR]
[--size SIZE] [--offset OFFSET]
python ttf-to-jpg.py --help
ttf_dir
: directory that includes .ttf filesjpg_dir
: directory that includes results of .jpgsize
: size of result jpgoffset
: offset (padding)
- code reference : zi2zi/font2img.py by kaonashi-tyc
- example fonts : 우아한 형제들, 배달의민족 무료 폰트(주아체, 연성체) by 우아한 형제들