[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#384325: Patch for Bug#384325: libqt3-mt: Floating point exception in QPaintDevice::~QPaintDevice



On Friday 29 September 2006 05:48, Jean Parpaillon wrote:
> Just to confirm:
> in my xorg.conf file, I've specified the size of my monitor and fonts
> are displayed correctly in apps using qt, so the issue comes from the
> detection of the resolution of the monitor with fglrx driver.

Yes. I wonder if the reason setting the DPI in Qt doesn't result in 
reasonable fonts is because it isn't really Qt that controls font 
rendering in most circumstances. It's fontconfig/freetype, the basic 
font rendering bits of Linux. That would explain why while I could fix 
the crash, I couldn't force fonts to render sensibly. Fontconfig still 
was trying to render based on the following information:

$ xdpyinfo | grep -A1 dimen
  dimensions:    1280x1024 pixels (0x0 millimeters)
  resolution:    -2147483648x-2147483648 dots per inch

... that you provided to me in your previous message. Note the 
ridiculous "dots per inch" values. Hence the tiny fonts.

If my understanding of the situation is correct, then there is no point 
in patching Qt. Users will simply have to provide monitor dimensions in 
xorg.conf if they use the fglrx driver. A pain, but at least it works.

Cheers,
Christopher Martin

Attachment: pgpnmSnJHQXTK.pgp
Description: PGP signature


Reply to: