Changing fonts (was Re: monitor problems)
Bill Carpenter
wjc at ho5cad.ATT.COM
Sat Jun 17 23:06:55 AEST 1989
In article <13523 at rphroy.UUCP> tkacik at 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
More information about the Unix-pc.general
mailing list