On Thu, Dec 13, 2001 at 10:24:03PM +0200, Dekel Tsur wrote: > When I call to XListFonts with the pattern "-*-cmsy-*" (or equivalently, when > typing xlsfonts -fn "-*-cmsy-*" in the shell), I get only one result as > expected: > -bluesky-cmsy-medium-r-normal--0-0-0-0-m-0-adobe-fontspecific > > However, when I use the pattern "-*-cmsy-*-*-*-*-*-*-*-*-*-*-*-*", I get > two results: > -bluesky-cmsy-medium-r-normal--0-0-0-0-m-0-adobe-fontspecific > -bluesky-cmsy-medium-r-normal--12-120-75-75-m-0-adobe-fontspecific
man xlsfonts : -o This option indicates that xlsfonts should do an OpenFont (and QueryFont, if appropriate) rather than a ListFonts. This is useful if ListFonts or ListFontsWithInfo fail to list a known font (as is the case with some scaled font systems). The behaviour you are seeing looks perhaps a little odd ... but it is related to the fact that listing all the available font specifications with scalable fonts makes no sense. My X book says : The X server and font server are only required to match scalable fonts when the font name pattrern they are passed is a well-formed one. A well-formed font name is one that contains all 14 hyphens specified in the XLFD convention. Wildcards are permitted for any field, but may not replace multiple fields. If XListFonts() is passed a pattrern that is not well-formed, it may not include scalable fonts in the search at all. - A.3.1 of Xlib Programming Manual , Adrian Nye