Convert bitmap fonts to ttf fonts using font forge.
Python
Switch branches/tags
Nothing to show
Latest commit 2f253bf Jan 24, 2014 @ali1234 Merge pull request #1 from codeman38/pillow
Try importing from Pillow before falling back to the original PIL
Permalink
Failed to load latest commit information.
README Add Amiga diskfont support. Jan 20, 2013
amigatottf.py Try importing from Pillow before falling back to the original PIL. Jan 24, 2014
convert.py Try importing from Pillow before falling back to the original PIL. Jan 24, 2014
outliner.py
pcftottf.py Try importing from Pillow before falling back to the original PIL. Jan 24, 2014

README

Bitmap2ttf converts (monochrome) bitmap fonts into ttf fonts.

There are three parts:

outliner.py:
  - Traces each bitmap into a series of polygons.

convert.py:
  - makes the polygons into svg files, and writes a script for font forge
    to convert the svgs into a ttf font.

loader of your choice/implementation:
  - currently there is only one loader:

    pcftotty.py:
      - loader for PCF bitmap fonts. 
        usage: ./pcftottf.py font.pcf

    amigatottf.py
      - loader for amiga diskfonts (eg topaz)
        usage: ./amigatottf.py topaz/11
        Amiga diskfonts are multiple files in a directory. 
        The output will be named after the directory.

The program is structured to make it easy to implement a loader for a font 
format of your choice. All you need is to supply a dict object to convert.py
which contains contains the key=>value pairs: 

character unicode value => Image