Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: default font id Message-ID: <8812091316.AA06843@EXPO.LCS.MIT.EDU> Date: 9 Dec 88 13:16:07 GMT References: <289@stan.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 13 I understand I'm not supposed to reach into the guts of the X structures. The code in question is in a toolkit, not an application. A toolkit is part of the application, looking out from Xlib. You've simply isolated the no-no. If a client/toolkit is trying to reuse a gc, changing only those quantities which are different, it must somehow be able to restore a font to the server default. Is there an accepted way to do this? You can use XCopyGC to copy it back from a GC known to have the default font. A bit gross, I agree. Would have been nicer to provide a special value for doing this.