Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsh!ho5cad!wjc From: wjc@ho5cad.ATT.COM (Bill Carpenter) Newsgroups: unix-pc.general Subject: Re: Changing fonts (was Re: monitor problems) Message-ID: Date: 17 Jun 89 13:06:55 GMT References: <732@flatline.UUCP> <13523@rphroy.UUCP> Sender: bill@cbnewsh.ATT.COM Reply-To: wjc@ho5cad.ATT.COM (Bill Carpenter) Distribution: unix-pc Organization: AT&T Bell Laboratories Lines: 35 In-reply-to: tkacik@rphroy.UUCP's message of 16 Jun 89 12:06:41 GMT In article <13523@rphroy.UUCP> tkacik@rphroy.UUCP (Tom Tkacik) writes: > I haved tried changing fonts, with little luck. > I tried both setf and sfont, and once even got a new font to show up in > > Can anyone tell me how to reliably change the current font in a window, > and how to get the cursor to change size as well. I assume you're talking about loading a font into slot 0 and not having a font in any other slots. 1. For some reason, you have to sometimes unload slot 0 first. In other words, to load fontXYZ in some particular window, do this: setf 0; setf fontXYZ 0 2. Sometimes the alignment of things isn't too swift looking if the font is a different size from the default. For me, this usually clears up if I go to another window and come back and/or do something that clears the window and repaints it. 3. The cursor size reflects the size of the largest font currently loaded in a window. Thus, if you just load something in slot 1 and switch to it, the cursor will be appropriate for the large of slot 0 or slot 1. (Another reason for unloading slot 0 first.) My fiddling-with-fonts knowledge is limited to 3.51 and 3.51a. I don't know of any differences between these two nor in any earlier stuff, but it wouldn't surprise me. Like I said in the earlier posting, it seems that font handling has a few rough edges left in it (hence the warnings about using other than 9x12 sizes). -- Bill Carpenter att!ho5cad!wjc or attmail!bill