Around 9 o'clock on Dec 13, Carl Worth wrote:
> > It's easy enough to fix, but I'm not quite sure which way to head -- I can > > actually make it so that all fonts are automatically closed when the > > display is closed (in which case, the list of available fonts is > > per-display). > > I don't think this will do it for me. My current program draws two > windows, one to each display, so I will not have closed the first > display by the time I am trying to open the font on the second > display. Sorry, my description was of two different ways to fix having more than one display open at a time; hanging the fonts off of the display gives me a convenient place to look for them when checking for identical fonts in the open. I'll do it this way, but I'll have the display hold it's own reference so that the application will be responsible for closing the font each time along with the display. No API change this way, even implicitly. > I would like to be able to write a function that accepts a variable > argument list to wrap XftFontOpen, but I can't do that since > XftFontOpen wants a variable argument list itself, Take a look at XftPatternVaBuild, XftFontMatch and XftFontOpenPattern; building your own XftFontVaOpen out of those should be easy enough. I'll consider adding it to the next major version of Xft. Keith Packard XFree86 Core Team Compaq Cambridge Research Lab _______________________________________________ Render mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/render
