From: Dong Luo (us917_at_yahoo.com)
Date: Wed Jan 20 2010 - 13:48:09 CST

John,

Thank you so much. Manually choose the font does solve the problem.
http://dl.dropbox.com/u/1727104/picture/tclConsoleWithNewFont.jpg
The font "Courier 24" is a little big though, I will play with it.

Dong

----- Original Message ----
From: John Stone <johns_at_ks.uiuc.edu>
To: Dong Luo <us917_at_yahoo.com>
Cc: vmd-l_at_ks.uiuc.edu
Sent: Wed, January 20, 2010 1:37:38 PM
Subject: Re: vmd-l: bad text display in tk console (ubuntu 8.04 VMD 1.8.7 linux 32 bit)

Dong,
  Try making a .tkconrc in your home directory, and see if choosing
a different font cures your problem. Here's an example I just tested
on my own machine:

## Example TkCon Resource File

# Use a fixed default font
#tkcon font fixed; # valid on unix
#tkcon font systemfixed; # valid on windows
#tkcon font Courier 12; # should be valid everywhere
tkcon font Courier 24; # HUGE text

See the TkCon documentation page here for more suggestions regarding fonts:
  http://tkcon.sourceforge.net/docs/start.html

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Wed, Jan 20, 2010 at 12:24:16PM -0600, John Stone wrote:
> Hi,
> The font list you got from xlsfonts looks fairly extensive,
> but I still think that Tcl/Tk must be looking for a font that you
> may be missing. Let me see if I can narrow down what font class it
> is actually looking for and I'll get back to you on this.
>
> Cheers,
> John
>
> On Wed, Jan 20, 2010 at 09:46:22AM -0800, Dong Luo wrote:
> > Here is the output of xlsfonts.
> > http://pastebin.com/m6f9aa0ef
> >
> > Thanks.
> >
> > Dong
> >
> >
> >
> > ----- Original Message ----
> > From: John Stone <johns_at_ks.uiuc.edu>
> > To: Dong Luo <us917_at_yahoo.com>
> > Sent: Wed, January 20, 2010 12:21:12 PM
> > Subject: Re: vmd-l: bad text display in tk console (ubuntu 8.04 VMD 1.8.7 linux 32 bit)
> >
> >
> > Dong,
> > One more thing to check, can you email me (no need to copy VMD-L since
> > nobody else will want to read it), the output of this command:
> > xlsfonts
> >
> > Cheers,
> > John Stone
> > vmd_at_ks.uiuc.edu
> >
> > On Wed, Jan 20, 2010 at 09:16:55AM -0800, Dong Luo wrote:
> > > Sorry, I forgot to attach what VMD says during startup.
> > >
> > > :~$ vmd
> > > [: 338: ==: unexpected operator
> > > [: 338: ==: unexpected operator
> > > Info) VMD for LINUX, version 1.8.7 (August 1, 2009)
> > > Info) http://www.ks.uiuc.edu/Research/vmd/
> > > Info) Email questions and bug reports to vmd_at_ks.uiuc.edu
> > > Info) Please include this reference in published work using VMD:
> > > Info) Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual
> > > Info) Molecular Dynamics', J. Molec. Graphics 1996, 14.1, 33-38.
> > > Info) -------------------------------------------------------------
> > > Info) Multithreading available, 4 CPUs detected.
> > > Info) Free system memory: 3062MB (93%)
> > > Info) Detected 1 available CUDA accelerator:
> > > Info) [0] GeForce 9500 GT 4 SM_1.1 @ 1.35 GHz, 1023MB RAM, KTO, OIO
> > > Info) Creating CUDA device pool and initializing hardware...
> > > Info) OpenGL renderer: GeForce 9500 GT/PCI/SSE2
> > > Info) Features: STENCIL MSAA(4) MDE CVA MTX NPOT PP PS GLSL(OVF)
> > > Info) Full GLSL rendering mode is available.
> > > Info) Textures: 2-D (8192x8192), 3-D (2048x2048x2048), Multitexture (4)
> > >
> > >
> > > Dong
> > >
> > >
> > > ----- Original Message ----
> > > From: John Stone <johns_at_ks.uiuc.edu>
> > > To: Dong Luo <us917_at_yahoo.com>
> > > Cc: vmd-l_at_ks.uiuc.edu
> > > Sent: Wed, January 20, 2010 11:24:45 AM
> > > Subject: Re: vmd-l: bad text display in tk console (ubuntu 8.04 VMD 1.8.7 linux 32 bit)
> > >
> > >
> > > Hi,
> > > Do you still have those strange lines going through your window
> > > title bars etc? Do you have the X11 composite extension enabled?
> > > (do you see warnings about it when VMD starts up?)
> > >
> > > You might see if updating to a more recent video driver helps your
> > > problem or not. You're using a 185.x series driver from what I saw,
> > > but newer versions are available now.
> > >
> > > Cheers,
> > > John Stone
> > > vmd_at_ks.uiuc.edu
> > >
> > >
> > > On Wed, Jan 20, 2010 at 08:17:57AM -0800, Dong Luo wrote:
> > > > Sorry for late reply. Here is the glxinfo output: http://pastebin.com/m419b897
> > > > "export LC_ALL=C" suggested by Axel Kohlmeyer is not working here.
> > > >
> > > > Thanks for your help.
> > > >
> > > > Dong
> > > >
> > > >
> > > >
> > > > ----- Original Message ----
> > > > From: John Stone <johns_at_ks.uiuc.edu>
> > > > To: Dong Luo <us917_at_yahoo.com>
> > > > Cc: vmd-l_at_ks.uiuc.edu
> > > > Sent: Fri, January 15, 2010 1:01:17 PM
> > > > Subject: Re: vmd-l: bad text display in tk console (ubuntu 8.04 VMD 1.8.7 linux 32 bit)
> > > >
> > > >
> > > > Hi
> > > > Wow, indeed, that's pretty horrifying. I also notice some odd
> > > > looking lines going through the minimize button and the window title bar,
> > > > are you using the X composite extension? What video card and driver are
> > > > you using? The snapshot you provided looks to me like a malfunctioning
> > > > attempt to antialias the displayed font which could be caused by either
> > > > the choice of a terrible font (but why would they even install one that
> > > > looks so bad?!?!?!), or some kind of windowing system or video driver
> > > > problem.
> > > >
> > > > Cheers,
> > > > John Stone
> > > > vmd_at_ks.uiuc.edu
> > > >
> > > > On Fri, Jan 15, 2010 at 09:30:48AM -0800, Dong Luo wrote:
> > > > > The text displayed in tk console is almost unreadable. Here is a snapshot showing what it looks like:
> > > > > http://dl.dropbox.com/u/1727104/picture/VMD_TkConsole.jpg
> > > > >
> > > > > I've been tried to tweak the system font and searching around, but can't get this solved.
> > > > >
> > > > > Any help will be appreciated.
> > > > >
> > > > > Dong
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > NIH Resource for Macromolecular Modeling and Bioinformatics
> > > > Beckman Institute for Advanced Science and Technology
> > > > University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
> > > > Email: johns_at_ks.uiuc.edu Phone: 217-244-3349
> > > > WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > NIH Resource for Macromolecular Modeling and Bioinformatics
> > > Beckman Institute for Advanced Science and Technology
> > > University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
> > > Email: johns_at_ks.uiuc.edu Phone: 217-244-3349
> > > WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
> > >
> > >
> > >
> > >
> >
> > --
> > NIH Resource for Macromolecular Modeling and Bioinformatics
> > Beckman Institute for Advanced Science and Technology
> > University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
> > Email: johns_at_ks.uiuc.edu Phone: 217-244-3349
> > WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
> >
> >
> >
> >
>
> --
> NIH Resource for Macromolecular Modeling and Bioinformatics
> Beckman Institute for Advanced Science and Technology
> University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
> Email: johns_at_ks.uiuc.edu Phone: 217-244-3349
> WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078