[Tkinter-discuss] Ugly fonts with tkinter

January Weiner january at uni-muenster.de
Fri Jun 15 02:43:19 CEST 2007


I am sure this has been asked a hundred times, but I could not find an
answer in Google.

I have recently started programming using Tkinter and python.  Before,
I was heavily using Perl-Tk, so I have some experience with that kit.
My system is Ubuntu 7.04.

My problem are the extremly ugly bitmap fonts used by Tkinter. Here is
an example:
http://hell.pl/january/python_fonts_example.png

I remember having a similar problem in perl-tk, and having for that
two solutions:
1) choose a different font (optionAdd method of the main window with
e.g. Arial 10)
2) recompiling perl-tk with an antialias option set, so that one gets
fully anti-aliased fonts.

First, I would like to use option (1), but I don't know enough of
tkinter to find it. Furthermore, I would like to know what is the
status on (2).  Is tkinter using somehow its own tk libraries, or does
it relies on system wide libraries? Do you have any experience with
using antialiased fonts with tkinter?

Cheers,
j.
-- 
------------ January Weiner 3  ---------------------+---------------
Division of Bioinformatics, University of Muenster  |  Schloßplatz 4
(+49)(251)8321634                                   |  D48149 Münster
http://www.uni-muenster.de/Evolution/ebb/           |  Germany


More information about the Tkinter-discuss mailing list