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: default font id Message-ID: <288@stan.com> Date: 7 Dec 88 02:14:24 GMT Organization: Solbourne Computer Inc., Longmont, Co. Lines: 24 Is there a good reason that the font identifier in the font structure returned from fontp = XQueryFont(dpy,XDefaultGC(dpy,scn))->gid) ; is not a valid font id? xterm (and how many other clients??) specifically avoids setting the font when it has to use the default font info. In addition, attempting to extract the font identifier for a default gc returns a 0xffffffff, which sometimes is accepted as a valid font identifier and sometimes is rejected: XGCValues gcvalues ; gcvalues.font = XDefaultGCOfScreen(XDefaultScreenOfDisplay(dpy))->values.font ; XChangeGC(dpy,existing_gc,GCFont,&gcvalues) ; When this fails, the error is always the same: X Protocol error: BadFont, invalid Font parameter Major opcode of failed request: 56 (X_ChangeGC) Minor opcode of failed request: 0 Resource id in failed request: 0xffffffff But when it succeeds, the value used is the same, 0xffffffff. Sun3, 4.2, V11R3 Gary Aitken ncar!boulder!stan!garya