How To Generate Custom Font in python

How To Generate Custom Font in python | pyfiglet | Python Projects

How To Generate Custom Font in python ?

In this blog we are going to see how to generate Custom Font in python using a library called pyfiglet.

Python has a cool library that you can use to generate custom fonts. You can use a generated font to create a cool article title. Install using pip;

pip install pyfiglet
import pyfiglet
text = pyfiglet.figlet_format("Love Python", font="puffy")
print(text)

Output:

How To Generate Custom Font in python

You can also generate a list of fonts that you can use for your text. Run this code below and you will get a list of fonts.

import pyfiglet
print(pyfiglet.FigletFont.getFonts())
import pyfiglet print(pyfiglet.FigletFont.getFonts())

Some of best courses recommended by us to boost your career ...

Shell Scripting course

Recon Course

Spread the love
Scroll to Top
www.thecyberblogs.com