comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Default vector font size under X
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Default vector font size under X [message #8676] Tue, 08 April 1997 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
R. Bauer wrote:
>
> Liam Gumley wrote:
>>
>> Try typing the following commands right after starting IDL under X:
>>
>> print,!d.x_ch_size,!d.y_ch_size
>> window,0
>> print,!d.x_ch_size,!d.y_ch_size
>>
>> On an SGI, I get
>> 6 9, followed by 12 12.
>>
>> In other words, the default vector font size is changed to a
>> platform-specific value after the first window is created. Why this
>> happens is a mystery to me - RSI support just says that it happens.
>>
>
> I posted this problem a few mounth ago, we had the same results
> transfering source from PC to RS6000. Or from one RS6000 to another.
>

The following is the contents of an "idl_startup" script I use on
an SGI when porting code from a Sun (Solaris 2.X). Kind of the reverse
of your problem, but it illustrates some methods to use to solve
this kind of problem:

; Choose pseudo-color 8-bit visual
device, pseudo_color=8

; Select default backing-store method to be provided by IDL, as SGI
; X server does not seem to provide it
device, retain=2

; Change size of font so programs fit on-screen (IRIX 4.0 or later)
; Reference: sgi.doc document in $IDL_DIR/notes
WIDGET_CONTROL, $
DEFAULT_FONT="-adobe-helvetica-bold-r-normal-*-14-100-*-*-*-*-* "

; Set default plotting font to same hardware font above
; (Create a pixmap window to avoid window creation upon
; calling DEVICE, FONT= ; then delete window)
window, xsize=5,ysize=5,/free,/pixmap
!p.font = 0 ; Use hardware font
device, FONT="-adobe-helvetica-bold-r-normal-*-10-100-*-*-*-*-*"
wdelete ; Delete window created

Hope someone finds this useful.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: file paths
Next Topic: Re: pickfile(/get_filter)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:37:03 PDT 2025

Total time taken to generate the page: 0.00432 seconds