also i notice that these look poor in DEBIAN and horrid in UBUNTU
(same program).
i checked the [fonts:///] directory and looks like every font in
creation is there.
by 'terrible' i maean very small and very jagged.
i tried changing my GNOME desktop preferences but that did not work.
i also search this site and (if i understand the postings) this does
not look easily solvable.
any guidance would be much appreciated.
regards
magicme
There are some things that could go wrong in this case:
1. Your X server lies about the true screen resolution, which affects
'tk scaling'
Read about it here: http://wiki.tcl.tk/8484
2. You use a Tcl/Tk version below 8.5alpha, which does not support
antialiased fonts (Tk 8.5 does if compiled with --enable-xft)
3. The app finds the wrong font.
The tk_getOpenFile etc. dialogs for unix are a bit dated looking, you
can find their implementation in the tk library dir. There are some
replacement dialogs available on the Tcl'ers wiki, which look nicer/more
modern on Unix.
The GNOME desktop preferences probably do nothing for Tk, as GNOME
invented (as always) its own configuration scheme instead of the
standard X11 option database which is used by Tk. You could try to add
some options to it for your font settings.
Michael
Michael,
Thanks for your time and input.
i will read into those issues.
magicme
Here's a little trick I use. I forget where I originally saw it.
First, declare a font called font_p:
font configure font_p -family "Helvetica" -size 12 -underline 0
Then:
foreach class { Button Checkbutton Entry Label Listbox Menu Menubutton
Message Radiobutton Scale MessageBox Text Dialog.msg } {
option add *$class.font font_p widgetDefault }
It won't give you anti-aliasing, of course. But you'll get to use your
favourite Truetype font instead of whatever badly scaled X11 bitmap
fonts you were picking up as defaults before.
Of course, if your script is being used on multiple platforms, you'll
want to run a switch on the OS name to choose fonts that will be there
on the system, look good and preferably fit in with the rest of the OS
dialogs.
Hope that helps.
PERFECT!
thank you Synic.
magicme