13 lines
352 B
Python
13 lines
352 B
Python
import pyfiglet
|
|
|
|
text_to_render = "Test"
|
|
fonts = pyfiglet.FigletFont.getFonts()
|
|
|
|
for font in fonts:
|
|
try:
|
|
print(f"\nFont: {font}")
|
|
result = pyfiglet.figlet_format(text_to_render, font=font)
|
|
print(result)
|
|
except Exception:
|
|
# Prevents the script from crashing if a specific font configuration fails
|
|
continue |