Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!gatech!hubcap!ncrcae!wingard From: wingard@ncrcae.Columbia.NCR.COM (Steve Wingard) Newsgroups: comp.windows.x Subject: Changing font style in xterm? Keywords: possible? Message-ID: <5222@ncrcae.Columbia.NCR.COM> Date: 11 Oct 89 21:57:23 GMT Organization: NCR Corp., Engineering & Manufacturing - Columbia, SC Lines: 24 Here at our site, we've got a number of people that have grown accustomed to a particular (proprietary) terminal emulator program. We're in the process now of migrating to xterm, and it seems that all of these people are coming to me with the same question: "How can I make xterm change the font it's using?" Not in the sense of using "-fn " or "XTerm*VT100.font: " to change the font that it's starting up in, but actually changing the window to a new font in the midst of the session. There's nothing in the control sequences to accomplish this, and knowing that the manpage for xterm says "Many of the options are resettable after xterm starts," 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. Am I beating my head against a wall trying to modify this already-realized widget? If so, would the best method be to create a new "term" widget, copy all the data from the old widget over (modifying the XtNfont falue in the process), then realizing the new widget and destroying the old one? (BTW, this is all using 11.2 Xt intrinsics and Xlib). Any help would be appreciated. Steve Wingard ...{hp-sdd|ucsd}!ncr-sd!ncrcae!wingard NCR Corp., E&M-Columbia ...!gatech!ncrats!ncrcae!wingard TOWER Systems Development wingard@ncrcae.Columbia.NCR.COM