Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!snorkelwacker!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: XTextExtents Message-ID: <9006072353.AA07494@Larry.McRCIM.McGill.EDU> Date: 7 Jun 90 23:53:12 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 16 > I am having trouble with XTextExtents in X11R3. I give it a single > character in order to obtain information necessary to center the > character but, but the ascent, descent, lbearing, and rbearing > returned are all zero. Am I doing something wrong, or is there a bug > in XTextExtents? > XTextExtents(fontinfo,w->m_type,1,&dh,&fa,&fd,&strprops); > where w->m_type is the character about which I want information. The second argument should be a pointer to character, not the character itself. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu