Problem with giant font sizes in tkinter

rantingrick rantingrick at gmail.com
Thu Feb 10 11:52:19 EST 2011


On Feb 10, 12:59 am, Steven D'Aprano <steve
+comp.lang.pyt... at pearwood.info> 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-*'
>
> On one PC (Fedora), the text is displayed fine. Running xlsfonts gives me
> this:
>
> $ xlsfonts -fn '-Adobe-Helvetica-Bold-R-Normal-*-140-*'
> -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso10646-1
> -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1
> -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso10646-1
> -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso8859-1
>
> On a second PC (Ubuntu), the text is displayed in HUGE letters and I get
> this from xlsfonts:
>
> $ xlsfonts -fn '-Adobe-Helvetica-Bold-R-Normal-*-140-*'
> -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso10646-1
> -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso10646-1
> -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1
> -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1
> -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso10646-1
> -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso10646-1
> -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso8859-1
> -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso8859-1
>
> I don't know how to diagnose or fix the problem. What should I do to fix
> this problem?


First let me stop laughing... hold on... yea just a minute... a little
longer please... gawd i am enjoying this... ok i am ready... *pffftt*
ha ha ha ha ha ha ha!

I thought you hated Tkinter Steven? That is what you told this fine
group many times anyway. Also on many occasions you have said that you
have no use for GUI's, period. This is very interesting that know you
cannot even draw text to preferred size.

Oh, and about your problem. READ THE FREAKING MANUAL!





More information about the Python-list mailing list