font2png
A little Python tool to convert a TrueType (ttf/otf) font into a PNG for use in demos.
To use from command line it expects python3
to be at /usr/bin
, it also expects that Pillow is installed and available to Python.
font2png -f -o
After exporting to PNG use your favourite tool to convert to a format suitable for your demo.
The output is one giant tall image where each
sized box contains a character, in ASCII order, starting with SPACE
(32) and ending with ~
(126).
I will gladly accept pull requests for any improvements that can be made.