Skip to content

JimJeon/TTF-to-PNG

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TTF-to-PNG for Korean

A PNG letter generator for icon fonts.

What

You can extract .png files of korean letters from a .ttf font file. It is useful to obtain icon images from an icon font.

Installation

ImageMagick

There are a lot of ways for installation.

FontTools

pip install fonttools

TTF-to-PNG for Korean

git clone https://github.com/JimJeon/TTF-to-PNG.git

Usage

  1. Install .ttf font by fontbook.

  2. 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
      
  3. Check under the ./images dir.

Environment

  • OSX : 10.10
  • Python : 3.6.2
    • It may work on other version's OSX or Python.

License

  • MIT

About

Generate PNGs from true-type-font

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%