Problem with giant font sizes in tkinter

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Feb 15 02:06:35 EST 2011


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.)



-- 
Steven



More information about the Python-list mailing list