Problem with giant font sizes in tkinter

Cousin Stanley cousinstanley at gmail.com
Thu Feb 10 10:48:47 EST 2011


Steven D'Aprano wrote:

> I have a tkinter application under Python 2.6 which is shows text 
> in a giant font, about twenty(?) times larger than expected.
>
> The fonts are set using:
>
> titlefont = '-Adobe-Helvetica-Bold-R-Normal-*-180-*'
> buttonfont = '-Adobe-Helvetica-Bold-R-Normal-*-140-*'
> labelfont = '-Adobe-Helvetica-Bold-R-Normal-*-140-*'
> ....

  Although I've been a linux user for several years,
  that type of font spec hurts my head .... :-)

  Will the more simplistic type of tuple spec 
  not work in your tkinter application ?

  canv.create_text(
     81 , 27 ,
     text = ' NTSC Standard ' ,
     fill = 'white' ,
     font = ( 'Helvetica' , 12 , 'bold' ) )


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona




More information about the Python-list mailing list