PDA

View Full Version : Tkinter font problem with Edgy



abovett
December 7th, 2006, 04:38 AM
Hi

Having some problems with a Python/Tkinter program under Edgy. Under Dapper, this works:

self.font = tkFont.Font( family="Bitstream Vera Sans",
size=48,
weight=tkFont.BOLD,
slant=tkFont.ITALIC )
but under Edgy it dosn't (I get a default - serif'd - font).

Anyone know why?

I noticed that xlsfonts | grep -i vera does not return anything under Edgy but does under Dapper - is this connected?

Cheers

Andy B

dwblas
December 8th, 2006, 10:17 PM
The first pass would suggest that you don't have it installed. Use Synaptic to search for ttf-bitstream-vera and see if it is installled. I think that's what you want, but not really sure.

abovett
December 9th, 2006, 09:52 PM
The first pass would suggest that you don't have it installed.
Thanks, but no - it's installed:

[andrew@jupiter ~]$ aptitude search ttf-bitstream-vera
i ttf-bitstream-vera - The Bitstream Vera family of free TrueType
Other programs (e.g. OpenOffice) can access it OK. Any other ideas?

abovett
December 19th, 2006, 08:26 PM
*bump*

dwblas
December 23rd, 2006, 03:58 AM
You have to have xfs installed to use a truetype font. See if Synaptic says that it is installed.