Problem with giant font sizes in tkinter

Rhodri James rhodri at wildebst.demon.co.uk
Wed Feb 16 18:26:15 EST 2011


On Tue, 15 Feb 2011 07:06:35 -0000, Steven D'Aprano  
<steve+comp.lang.python at pearwood.info> wrote:

> On Sun, 13 Feb 2011 23:42:06 +0000, Rhodri James wrote:
>
>> On Fri, 11 Feb 2011 02:08:01 -0000, Steven D'Aprano
>> <steve+comp.lang.python at pearwood.info> wrote:
>>
>>> On Thu, 10 Feb 2011 15:48:47 +0000, Cousin Stanley wrote:
>>>
>>>> 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.
> [...]
>> In this case I think you're missing a hyphen.  Try
>>
>> titlefont = '-Adobe-Helvetica-Bold-R-Normal--*-180-*'
>
> Thanks for the suggestion, but xlsfonts returns the same eight font files
> regardless of whether the hyphen is there or not. (I wouldn't expect
> otherwise, since the font matching treats * as a text wildcard and will
> let it cross field boundaries.)

Bother.  It was a lovely theory, but I should have read the man page first.

-- 
Rhodri James *-* Wildebeest Herder to the Masses



More information about the Python-list mailing list