A PNG letter generator for icon fonts.
You can extract .png
files of korean letters from a .ttf
font file. It is useful to obtain icon images from an icon font.
There are a lot of ways for installation.
-
Homebrew
brew install imagemagick
-
Cactuslab's installer
pip install fonttools
git clone https://github.com/JimJeon/TTF-to-PNG.git
-
Install
.ttf
font by fontbook. -
Execute following command.
./ttf2png.py [INSTALLED_FONT_PATH] [FONT_SIZE]
-
You can find
INSTALLED_FONT_PATH
by the executing following command.convert -list font
Output:
Font: Verdana family: Verdana style: Normal stretch: Normal weight: 400 glyphs: /Library/Fonts/Verdana.ttf <-INSTALLED_FONT_PATH
-
-
Check under the
./images
dir.
- OSX : 10.10
- Python : 3.6.2
- It may work on other version's OSX or Python.
- MIT