How To Get all the usable fonts in pyfiglet python3


I am using a library called pyfiglet which i installed using pip3 install pyfiglet i want to know if there is a way through which i can get a list of all the fonts which i can use in pyfiglet.figlet_format() like i want to get a list list_of_fonts = [] and in the list i want to get all of the fonts which i can use or which are installed.

I am using Debian Linux with Python 3.9

Thanks for answering in advance.


Type this in terminal, it will show all the fonts you can use.

pyfiglet -l  


pyfiglet --list_fonts

In a python file, you can get a fonts list:

import pyfiglet

Answered By – Jacky

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published