Prev: Is it possible to specify in TclOO classes a kinds of operators? (e.g. == or "eq")
Next: ActiveState Blog - Where Is Tcl Hiding?
From: kevan on 16 Feb 2010 11:06 Over at the CERN laboratory in Geneva, they have mandated a switch from SLC3 to SLC5, their newest version of Scientific Linux. On SLC5, all my Tk buttons are enormous because the system assumes a huge font size. I can over-ride the system font with specific Tk commands, but I'd rather fix the SLC5 system settings. The problem is, I can't figure out which Linux font settings Tk uses. Which environment variables or configuration file does Tk use to obtain its default font sizes? Thank you in advance, Kevan Hashemi, Brandeis University Physics Department.
From: Zbigniew Diaczyszyn on 18 Feb 2010 04:50 kevan(a)hashemifamily.com schrieb: > Over at the CERN laboratory in Geneva, they have mandated a switch > from SLC3 to SLC5, their newest version of Scientific Linux. On SLC5, > all my Tk buttons are enormous because the system assumes a huge font > size. I can over-ride the system font with specific Tk commands, but > I'd rather fix the SLC5 system settings. The problem is, I can't > figure out which Linux font settings Tk uses. > > Which environment variables or configuration file does Tk use to > obtain its default font sizes? Thank you in advance, > > Kevan Hashemi, Brandeis University Physics Department. Did you try already the "option add" command? On my Linux I had to minimize my tk_messageBox text. I did: option add *Dialog.msg.font {Sans 9} For your purpose would be suitable: option add *Button.font {sans 9}
From: Donald Arseneau on 19 Feb 2010 21:40 On Feb 16, 8:06 am, ke...(a)hashemifamily.com wrote: > Over at the CERN laboratory in Geneva, they have mandated a switch > from SLC3 to SLC5, their newest version of Scientific Linux. On SLC5, > all my Tk buttons are enormous because the system assumes a huge font > size. I'm typing this from SL5, and Tk buttons are normal. It sounds like you simply have the dpi of your monitor misconfigured. Was your monitor recognized properly when you installed? Can you check the information in the monitor configuration gui? Try this: wish winfo screenmmwidth . Does it report the actual size of your monitor? Donald Arseneau
From: Larry W. Virden on 22 Feb 2010 08:09
On Feb 18, 4:50 am, Zbigniew Diaczyszyn <z....(a)gmx.de> wrote: > > Did you try already the "option add" command? > > On my Linux I had to minimize my tk_messageBox text. I did: > > option add *Dialog.msg.font {Sans 9} > > For your purpose would be suitable: > > option add *Button.font {sans 9} It would really be great if someone would add some information about the useful option arguments to the appropriate man pages or at least wiki pages, to help when people are trying to accomplish things like this. |