Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!larry!jansen From: jansen@larry.sal.wisc.edu (Stephen Jansen) Newsgroups: comp.windows.x Subject: VMS DECwindows XQueryFont problem Message-ID: <1102@larry.sal.wisc.edu> Date: 13 Jun 90 15:20:47 GMT Reply-To: jansen@larry.sal.wisc.edu.UUCP (Stephen Jansen) Distribution: comp.windows.x Organization: Space Astronomy Lab, Madison, WI Lines: 42 I have been having a problem with the XQueryFont function in VMS DECwindows. #define FontName "6x10" /******* Load the font for text writing ******/ static void doLoadFont( ) { Font font; if(!(font = XLoadQueryFont(dpy, FontName))) font = XQueryFont(dpy,XGContextFromGC(DefaultGC(dpy,DefaultScreen(dpy)))); else XSetFont(dpy, gc, font); } This bit of code works fine when it is executed using the local transport, but when I set host to another VMS machine and execute the code using the DECnet transport the program *often* (ie. not always, some machines dont seem to do this at all) crashes with this (or very simmilar) error message. X error event received from server: BadFont - parameter not a Font Failed request major op code 47 (X_QueryFont) Failed request minor op code 0 (if applicable) ResourceID 0x400029 in failed request (if applicable) Serial number of failed request 245 Current serial number in output stream 266 According to every X book I have it is valid to use a GContext ID instead of an actual font ID. My question is, Does anyone have any idea what is going on here?, and, if so, What can I do about it? ------------------------------------------------------------------------------- | Stephan Jansen | SPAN: MADRAF::JANSEN (MADRAF=7309) | | Systems Programmer | BITnet: SJANSEN@WISCMACC | | Astronomy Department | INTERnet: JANSEN%MADRAF.DECNET@VMS.MACC.WISC.EDU | | U. Wisconsin - Madison | Phone: (608) 262 - 2198 | -------------------------------------------------------------------------------