This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.saaltink
Recipients mark.saaltink
Date 2010-10-16.01:30:27
SpamBayes Score 9.4504156e-07
Marked as misclassified No
Message-id <1287192630.89.0.924571330725.issue10118@psf.upfronthosting.co.za>
In-reply-to
Content
Tkinter, since tk 8.5 apparently, does not find all the fonts that tk knows about.

I'm using Python 2.6.5 on Linux but have seen this on previous versions.  I have added the font with "xset fp+ <some font directory>"".  The font is Richard Jones' zed font, available from http://www.cs.kent.ac.uk/people/staff/rej/Zedfont/latest/

xlsfonts shows the font.

tk sees the font; in wish if I type "font families" there it is:

% font families
{fangsong ti} fixed {clearlyu alternate glyphs} charter lucidatypewriter zedfont {latin modern roman}  ...

In Tkinter I do not see the font:
>>> from Tkinter import *
>>> r = Tk()
>>> import tkFont
>>> tkFont.families(r)
... no sign of the zedfont here.

Is this expected behaviour?  Is there another way to install the font that avoids this problem?
History
Date User Action Args
2010-10-16 01:30:30mark.saaltinksetrecipients: + mark.saaltink
2010-10-16 01:30:30mark.saaltinksetmessageid: <1287192630.89.0.924571330725.issue10118@psf.upfronthosting.co.za>
2010-10-16 01:30:28mark.saaltinklinkissue10118 messages
2010-10-16 01:30:27mark.saaltinkcreate