font width in text widgets [message #552] |
Thu, 15 October 1992 14:08  |
jat
Messages: 4 Registered: August 1992
|
Junior Member |
|
|
I'm using the IDL widgets library routine 'xdisplayfile' to
display formatted text (ascii). The file that I pass to
'xdisplayfile' has all the correct data in the correct positions.
This file was written to using 'printf' and 'format'.
However, when this formatted file appears in the text widget
generated by 'xdisplayfile', not all of the data is lined up properly.
I think that this problem is caused by the fact that not all of
the characters in the text widget are of equal width.
My questions are
(1) Is this really why the data isn't in the positions I expected ?
(2) How do I solve this problem ?
I called up RSI, and I was informed that the fonts were
probably my problem, and I could set the fonts by using
widget_control' with 'default_font' set.
I figured that I had missing something in the widgets
addendum (Ver. 2.3.2). NOT! There is no reference to 'default_font'.
(3) If this is a potential solution, what do I set 'default_font'
to ?
I've tried a few different fonts and I still get the same
undesired results. (the font types do change)
--
Jatinder Singh 916-653-7564
jat@water.ca.gov ...ucbvax!ucdavis!caldwr!jat
Any opinions expressed are my own; they do not represent the DWR.
|
|
|