This tool converts font files into the format used by txtjs.
DO NOT STEAL FONTS. DO NOT EXPORT FONTS WITHOUT A PROPER LICENSE.
-
Install python, fontforge, and install BeautifulSoup4
pip install beautifulsoup4
-
Create the following directories:
mkdir font source_fonts svg svgff web_fonts
-
Place TTF or OTF fonts in "source_fonts" directory
-
Run:
fontforge -script convert.pe source_fonts/*.ttf fontforge -script convert.pe source_fonts/*.otf
-
COPY .SVG Files from source_fonts to "svgff" directory
-
Run:
python main.py
-
exported fonts are in the 'fonts' directory