Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 711 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 711 Bytes

Font exporter

This tool converts font files into the format used by txtjs.

Notice

DO NOT STEAL FONTS. DO NOT EXPORT FONTS WITHOUT A PROPER LICENSE.

Usage

  1. Install python, fontforge, and install BeautifulSoup4

    pip install beautifulsoup4
  2. Create the following directories:

    mkdir font source_fonts svg svgff web_fonts
  3. Place TTF or OTF fonts in "source_fonts" directory

  4. Run:

    fontforge -script convert.pe source_fonts/*.ttf
    fontforge -script convert.pe source_fonts/*.otf
  5. COPY .SVG Files from source_fonts to "svgff" directory

  6. Run:

    python main.py
  7. exported fonts are in the 'fonts' directory