On Thu, Jan 17, 2002 at 11:11:58AM +0000, John Levon wrote: > > I'm not sure how little the extra code is, we need to request the particular > size from X then add it to sizes array somehow ...
If you are looking at the font code, then please also look at the following problem: If \use_scalable fonts is false, and I try to use a postscript font (e.g. the cmsy font for symbols), then LyX thinks that the cmsy is a bitmap font of size 12 points, and will always use this font at this size. This is because the call XListFonts with the pattern "-*-cmsy-*-*-*-*-*-*-*-*-*-*-*-*" returns 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 If the pattern "-*-cmsy-*" is used, there is only one result: -bluesky-cmsy-medium-r-normal--0-0-0-0-m-0-adobe-fontspecific but I understand that this is not a standard pattern. So we need a way to tell that the result -bluesky-cmsy-medium-r-normal--12-120-75-75-m-0-adobe-fontspecific is not a true bitmap font. I think that the 0 above indicates that PS: it might be better to use XListFontsWithInfo call instead of XListFonts.