Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!ncar!boulder!stan!garya From: garya@stan.com (Gary Aitken) Newsgroups: comp.windows.x Subject: Re: default font id Message-ID: <289@stan.com> Date: 8 Dec 88 17:25:39 GMT Organization: Solbourne Computer Inc., Longmont, Co. Lines: 20 It's the same old (tired) argument about resource id allocation being a client responsibility, there's no a priori id to assign to it, it would require special mechanism (deemed unnecessary) to assign an id to it. 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. The X documentation states that gcs are scarce resources and should be reused if possible; it's cheaper to change an attribute than make another gc. Most supporting hardware agrees with this interpretation. 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? Otherwise, the only alternative is to keep track of which attribute sets were created with the default font and using the appropriate default font/known font gc as appropriate. Any systems analyst worth ten cents would barf all over doing this....