On Sat, Dec 02, 2006 at 05:00:33PM +0100, Enrico Forestieri wrote:

> > That is OK with me, provided you find out that the comment about lying 
> > QFontInfo is not true anymore.
> 
> Seemingly, this was a sort of bug in older Qt versions. See for example
> http://lists.trolltech.com/qt-interest/2000-02/thread00025-0.html
> where the same problem is illustrated (and a possible workaround given).
> 
> However, trusting the documentation at
> http://doc.trolltech.com/4.2/qfontinfo.html
> 
>    The QFontInfo class provides the same access functions as QFont,
>    e.g. family(), pointSize(), italic(), weight(), fixedPitch(),
>    styleHint() etc. But whilst the QFont access functions return the
>    values that were set, a QFontInfo object returns the values that
>    apply to the font that will actually be used to draw the text.

It always said that, and it's been broken for god knows how long.
Hopefully they really did fix it in Qt4. It should obvious if they did,
you can remove this logic, and you still get the right fonts on Linux.

regards,
john

Reply via email to