Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Mark Quigley wrote: > I find myself stumped by this problem, but perhaps someone who > actually understands fonts might help me out? > > I'm doing the following: > > xyouts,.5, .5, 'abc def' > xyouts,.5, .4, 'hij klm' > xyouts,.5, .3,'123 456' > > > I'd like the output to the plot to line up nicely. However, no matter > what font perversion I use the characters have different widths, so > the columns dont line up. > > Is there some reasonably simple way to line up the columns (ie, a font > I haven't discovered where the characters are all forced to have the > same width?) You mean like this? IDL> device, set_font='Courier', /tt_font IDL> xyouts,.5, .5, 'abc def', /normal, font=1, charsize=2 IDL> xyouts,.5, .4, 'hij klm', /normal, font=1, charsize=2 IDL> xyouts,.5, .3,'123 456', /normal, font=1, charsize=2 Mike -- www.michaelgalloy.com Associate Research Scientist Tech-X Corporation