carte
carte

Reputation: 1083

Tkinter font style

I'm trying to design an interface, and I came across this problem.

When I create text in the center of the screen with the font style "bold", everything works fine.

cnvs.create_text(400,400,text="Test", font=('Helvetica Neue',50,'bold'),fill="white",anchor='c')

But, when I try to make it light or ultralight, it dosn't work, even though I have those types installed.

cnvs.create_text(400,400,text="Test", font=('Helvetica Neue',50,'light'),fill="white",anchor='c')

Any one know why? Thanks!

Upvotes: 0

Views: 1842

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386362

It doesn't work because "light" isn't a valid option. The only valid options for the font style are "normal", "bold", "roman", "italic", "underline" and "overstrike".

Upvotes: 2

Related Questions