Problem with giant font sizes in tkinter

Westley Martínez anikom15 at gmail.com
Fri Feb 11 04:39:17 CET 2011


On Fri, 2011-02-11 at 03:13 +0000, Steven D'Aprano wrote:

> On Thu, 10 Feb 2011 18:35:09 -0800, Paul Rubin wrote:
> 
> > Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
> >>>> labelfont = '-Adobe-Helvetica-Bold-R-Normal-*-140-*' ....
> >> Nevertheless, I'd like to learn how to diagnose these sorts of font
> >> issues. Can anyone suggest where I should start?
> > 
> > Is the -140- a font size in points (1 point = 1/72 inch) or something
> > like that?  Try a smaller number.
> 
> Thanks, but I already know how to make random changes to code until it 
> works :) 
> 
> I want to understand what I'm doing and why. Why does the same piece of 
> code work perfectly fine on one PC, and blow up to the size of a house on 
> another? This surprises me, particularly since the not-working PC has the 
> same fonts as the working one (plus extras).
> 
> 
> 
> -- 
> Steven

It could be DPI.
Anyways why would you want to set particular fonts anyways? Odd are
there's gonna be someone who doesn't have the font installed. Whenever
I've done tkinter programming, which isn't much, I've just stuck with
the default font.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110210/4077df14/attachment.html>


More information about the Python-list mailing list