Path: utzoo!attcan!uunet!ginosko!usc!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Changing font style in xterm? Message-ID: <8910121805.AA25978@expo.lcs.mit.edu> Date: 12 Oct 89 18:05:09 GMT References: <5222@ncrcae.Columbia.NCR.COM> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 15 > I set out to try to hack up charproc.c to see if it could be > made to work. My initial attempt (to perform an XQueryLoadFont on the > new font and use XtSetValues on the "term" widget to change the value > of XtNfont to the new font's FontStruct information) proved ineffective. My guess is that the "term" widget needs support in its SetValues method that will cause it to get new GCs when the font is changed. Since Xterm did not support this behavior in previous versions it is not surprising that this fails. It looks like you will need to modify the "term" widget to get the behavior that you desire. Good Luck, (you'll need it, that code is ugly :-). Chris