A PNG letter generator for icon fonts.
You can extract .png files of all 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/sl2/TTF-to-PNG.git
-
Install
.ttffont by fontbook. -
Execute following command.
./ttf2png.py [INSTALLED_FONT_PATH] [FONT_SIZE]-
You can find
INSTALLED_FONT_PATHby the executing following command.convert -list fontOutput:
Font: Verdana family: Verdana style: Normal stretch: Normal weight: 400 glyphs: /Library/Fonts/Verdana.ttf <-INSTALLED_FONT_PATH
-
-
Check under the
./imagesdir.
- OSX : 10.10
- Python : 2.7.8
- It may work on other version's OSX or Python.
- MIT