On Mon, May 17, 2004 at 04:56:32PM +0200, Jean-Marc Lasgouttes wrote: > John> It looks wrong. For starters, these default aliases should exist > John> on any sane Qt system using Xft. Secondly, even if they don't > John> exist, the created font should change to a default, NOT return a > John> NULL. Something is badly wrong... > > Do you think you have time to have a look at this (understanding why > some people need this)?
Not really, no. An interested party could double-check the Qt documentation to see if a NULL return value is acceptable or not. AFAIK it's not. "sans" etc. are just sensible defaults (and certainly way way better than "Arial" et al). The real bug here is the crash. The lack of a "sans" alias is probably a bug in whatever distro it is. If we don't have time to investigate, then a workaround would be to check for NULL, and then use a default-constructed QFont to get some kind of font name out of it. regards john