Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: How do I load the cursor font AS A FONT? Message-ID: <9011181133.AA08972@Larry.McRCIM.McGill.EDU> Date: 18 Nov 90 11:33:39 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 38 > The question is: How do I load the cursor font AS A FONT? XLoadFont, XLoadQueryFont, etc, just like any other font. > The name does not look like your standard X font name (just "CURSOR", > not "-Cursor-ITC Blech-etc.") It may not be an XLFD font, but it's still a perfectly good font. > I'm afraid (although I haven't tried it yet) that if I look it up or > load it, something will explode. Am I paranoid? Yes. If trying to load strange fonts names causes your server to blow up, it's time to file a major bug report with whoever deals with bug reports for your server (and start looking for alternate servers). From the Xlib document: To create a cursor from a standard font, use XCreateFontCursor. [description of XCreateFontCursor omitted] X provides a set of standard cursor shapes in a special font named cursor. Applications are encouraged to use this interface for their cursors because [...]. The shape argument specifies which glyph of the standard fonts to use. [...] For further information about cursor shapes, see appendix B. (Appendix B simply lists the names available and the corresponding numeric values.) In particular, notice that it promises that the cursor font is called "cursor", so it shouldn't be too surprising to find exactly that.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu