Skip to content
← Back to Community
Changing font
Profile icon
C00lguy975

I'm making chess AI using the python chess module. I'm doing well, but it's hard to read the board as the font I'm using makes it hard to tell the difference between P and p. How can I change the font in the console?

Answered by mat1 [earned 5 cycles]
View Answer
Voters
Profile icon
TanayAjith
Profile icon
JoshSpencer
Profile icon
CODYSMITH17
Profile icon
akaap3x
Profile icon
srinivasganta
Profile icon
Madarak
Profile icon
HarryVarvel
Profile icon
EllisHeskin
Profile icon
leon04p
Profile icon
HansenLi
Comments
hotnewtop
Profile icon
mat1

You can't change the actual font in the terminal. You can however change the color, and make it bold or italics. This is possible with ANSI escape sequences. For example, if you want to make it bold, print \033[1m. Then if you want to make it bright red use \033[91m. There's a full list of colors in that same Wikipedia article. Finally, you can clear the color, boldness, etc, by simply printing \033[m.

Profile icon
NalinDias

I Tried Changing the font on my website but it didn't work, Can You Show Me how

Profile icon
PlatonicC

But the font I had was times New Roman, but in another project imported from GitHub, the font was different. Why is this?

Profile icon
WendyQuizhpilem

how do I change a font's color

Profile icon
BraedenWard1

help

Profile icon
JadeSoriano

HOW TO CHANGE THE FONT ON REPLIT?

Profile icon
Vandesm14

You cannot change the font of the console in repl.it

Profile icon
Geocube101

Can you link the repl?
I didn't even know you could change the font

Profile icon
C00lguy975

@Geocube101 Apparently you can't :(

Profile icon
AlfieCijoy

LOl you can't that's what he is saying @Geocube101

Profile icon
AllAwesome497

What?