Python Forum
Print text with big font and style
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print text with big font and style
#1
   
How can I print text with such font like this one on this picture?
Your support is highly appriciated in advance 🙏🙏🙏🙏
Reply
#2
It usually called Ascii Text when get view in Terminal(command line).
Python can do better than this with the fantastic Rich✨.
Also if combine with Pyfiglet then can look like this.
[Image: k3rcat.png]
Code for this.
# pip install rich pyfiglet
import pyfiglet
from rich import print

title = pyfiglet.figlet_format('Hello', font='isometric2')
print(f'[yellow]{title}[/yellow]')
Finish made fonts
BashBedlam, Larz60+, Gribouillis like this post
Reply
#3
That exact font is called 'ANSI Shadow' and can be found HERE
print ('██████╗  █████╗ ███████╗██╗  ██╗')
print ('██╔══██╗██╔══██╗██╔════╝██║  ██║')
print ('██████╔╝███████║███████╗███████║')
print ('██╔══██╗██╔══██║╚════██║██╔══██║')
print ('██████╔╝██║  ██║███████║██║  ██║')
print ('╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝')
print ()                                               
print ('██████╗ ███████╗██████╗ ██╗      █████╗ ███╗   ███╗')
print ('██╔══██╗██╔════╝██╔══██╗██║     ██╔══██╗████╗ ████║')
print ('██████╔╝█████╗  ██║  ██║██║     ███████║██╔████╔██║')
print ('██╔══██╗██╔══╝  ██║  ██║██║     ██╔══██║██║╚██╔╝██║')
print ('██████╔╝███████╗██████╔╝███████╗██║  ██║██║ ╚═╝ ██║')
Gribouillis likes this post

Attached Files

Thumbnail(s)
   
Reply
#4
The same with less noise in the code
print('''\
██████╗  █████╗ ███████╗██╗  ██╗
██╔══██╗██╔══██╗██╔════╝██║  ██║
██████╔╝███████║███████╗███████║
██╔══██╗██╔══██║╚════██║██╔══██║
██████╔╝██║  ██║███████║██║  ██║
╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝
                                            
██████╗ ███████╗██████╗ ██╗      █████╗ ███╗   ███╗
██╔══██╗██╔════╝██╔══██╗██║     ██╔══██╗████╗ ████║
██████╔╝█████╗  ██║  ██║██║     ███████║██╔████╔██║
██╔══██╗██╔══╝  ██║  ██║██║     ██╔══██║██║╚██╔╝██║
██████╔╝███████╗██████╔╝███████╗██║  ██║██║ ╚═╝ ██║''')
Reply
#5
One more with Rich,just look at my list of color combination that is accepted 🌞
Rich is something special and i heard that Will McGugan took a year off to work on Rich and Textual.
from rich import print

font = '''\
██████╗  █████╗ ███████╗██╗  ██╗
██╔══██╗██╔══██╗██╔════╝██║  ██║
██████╔╝███████║███████╗███████║
██╔══██╗██╔══██║╚════██║██╔══██║
██████╔╝██║  ██║███████║██║  ██║
╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝

██████╗ ███████╗██████╗ ██╗      █████╗ ███╗   ███╗
██╔══██╗██╔════╝██╔══██╗██║     ██╔══██╗████╗ ████║
██████╔╝█████╗  ██║  ██║██║     ███████║██╔████╔██║
██╔══██╗██╔══╝  ██║  ██║██║     ██╔══██║██║╚██╔╝██║
██████╔╝███████╗██████╔╝███████╗██║  ██║██║ ╚═╝ ██║
╚═════╝ ╚══════╝╚═════╝ ╚══════╝╚═╝  ╚═╝╚═╝     ╚═╝'''

colors = ['cornflower_blue', 'rgb(175,0,255)', 'yellow on blue', '#38761d on #a64d79']
for color in colors:
    print(f'[{color}]{font}[/{color}]')
[Image: cH4RoJ.png]
Gribouillis likes this post
Reply
#6
Thank you all for your support, I'm checking right now👍🙏🙏🙏🙏🙏🙏🙏
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Start print a text after open an async task via button Nietzsche 0 671 May-15-2023, 06:52 AM
Last Post: Nietzsche
  Saving the print result in a text file Calli 8 1,700 Sep-25-2022, 06:38 PM
Last Post: snippsat
  how to change the font style on Linux? laylalogan337 2 1,906 Aug-10-2021, 04:31 PM
Last Post: deanhystad
  Load external font and does not show font in the window ATARI_LIVE 16 7,984 Feb-05-2021, 10:36 PM
Last Post: EthanPayne
  Tkinter font style ATARI_LIVE 2 1,824 Oct-24-2020, 08:22 PM
Last Post: ATARI_LIVE
  Help with getting sub-program to print text djwilson0495 2 1,870 Aug-16-2020, 05:03 PM
Last Post: deanhystad
  Print to Text file in Python 3 iteachpc 2 2,316 May-02-2019, 04:38 AM
Last Post: perfringo
  Is there a way to detect the text font, size and color from an image in python? Maia07 2 8,582 Aug-23-2018, 01:16 PM
Last Post: Maia07
  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? JohnJSal 6 23,960 Jun-19-2018, 03:43 PM
Last Post: JohnJSal
  Why does function print require bracket for text? richardm55 2 2,920 May-23-2018, 07:30 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020