Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!ucsd!rutgers!njin!princeton!twg.com!gonzo!edward From: edward@twg.com (Edward C. Bennett) Newsgroups: comp.windows.x Subject: Re: Anyone running xconq? Summary: The solution Message-ID: <7701@gollum.twg.com> Date: 6 Aug 90 01:10:49 GMT References: <7691@gollum.twg.com> Sender: news@twg.com Reply-To: edward@twg.com (Edward C. Bennett) Organization: The Wollongong Group, Palo Alto, CA Lines: 25 In article <7691@gollum.twg.com> edward@twg.com (me) writes: >Is anyone out there running xconq with X11R4? For me, it builds >OK but it starts up in a very small window. After I resize the >window the playing area is OK but all the text windows are wrong. >Has anyone fixed this "problem"? The problem stems from the redefinition of some of the members of the XFontStruct font definition structure. Here's the fix: In X11.c, the function get_font_size(), change: *width = font->max_bounds.rbearing - font->min_bounds.lbearing; *height = font->max_bounds.ascent + font->min_bounds.descent; to *width = font->max_bounds.width; *height = font->ascent + font->descent; Credit to Dan Lovinger for the fix. -- Edward C. Bennett - The other MMDF guy edward@twg.com The Wollongong Group (415) 962-7252 1129 San Antonio Road, Palo Alto, CA 94303 Before he ever met her, he wrote her a letter.