Bug 550177 - Qt 4.6.0 fails to correctly render some bitmap fonts
Summary: Qt 4.6.0 fails to correctly render some bitmap fonts
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: qt
Version: 12
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL: http://bugreports.qt.nokia.com/browse...
Whiteboard:
Depends On:
Blocks: qt46
TreeView+ depends on / blocked
 
Reported: 2009-12-23 22:27 UTC by Artem S. Tashkinov
Modified: 2010-02-09 18:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-09 18:54:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Example (151.50 KB, image/png)
2009-12-23 22:27 UTC, Artem S. Tashkinov
no flags Details
terminus appearning ok on f12 x86_64 box with qt-4.6.0-3 (108.14 KB, image/png)
2009-12-24 01:58 UTC, Rex Dieter
no flags Details
Bug reproduced in F12 + Qt 4.6.0 (117.00 KB, image/png)
2009-12-31 11:33 UTC, Artem S. Tashkinov
no flags Details

Description Artem S. Tashkinov 2009-12-23 22:27:23 UTC
Created attachment 380090 [details]
Example

Description of problem: Qt 4.6.0 doesn't properly render Terminus font in Linux.

Version-Release number of selected component (if applicable): 4.6.0

How reproducible: always, it's a regression.

Steps to Reproduce:
1. Install rawhide, Fedora 13
2. Install terminus font
3. Try to use it in any Qt/KDE application.
  
Actual results: Something terribly wrong is rendered instead of Terminus font.

Expected results: Proper rendering.

Additional info: Qt 4.5.3/Qt 3.5.8 don't have this bug.

Comment 1 Rex Dieter 2009-12-24 01:57:41 UTC
I cannot reproduce on my F12 box with qt-4.6.0.  Screenshot forthcoming.

Comment 2 Rex Dieter 2009-12-24 01:58:38 UTC
Created attachment 380117 [details]
terminus appearning ok on f12 x86_64 box with qt-4.6.0-3

Comment 3 Artem S. Tashkinov 2009-12-24 08:59:12 UTC
(In reply to comment #1)
> I cannot reproduce on my F12 box with qt-4.6.0.  Screenshot forthcoming.  

OK, let's go deeper into details.

1) Are you on Rawhide or Fedora 12?

2) Is your freetype compiled with --with bytecode_interpreter and --with subpixel_rendering ? (because that's how I use it here)

3) I can post my .fonts.conf so that we can investigate that further.

Comment 4 Kevin Kofler 2009-12-24 09:59:48 UTC
Yeah, I strongly suspect this is related to freetype.

rdieter: Try installing freetype-freeworld on F12 and see if you can reproduce it with that.

Comment 5 Artem S. Tashkinov 2009-12-24 13:22:50 UTC
I cannot reproduce this bug on Rawhide, it only appears on *my* Fedora 12.

Comment 6 Artem S. Tashkinov 2009-12-24 14:15:25 UTC
On Fedora 12 this bug has something to do with X server.

1) With NVIDIA proprietary drivers Terminus font is misrendered by Qt 4.6.

2) With Vesa driver Terminus font with size 9 is shown correctly, but with any other size, symbols are rendered as squares.

Also I've found out, that Qt 3.X which is not affected uses libXft to render fonts, while Qt 4.X don't use this library. The strange thing is that Qt 4.5.3 doesn't have this bug, and Qt 4.6.0 has this bug.

P.S. nv drivers doesn't work here so I cannot test it.

I have no idea how to find out the cause of this problem :(

Comment 7 Rex Dieter 2009-12-24 14:40:21 UTC
f12 with stock freetype.

Comment 8 Artem S. Tashkinov 2009-12-24 15:01:40 UTC
(In reply to comment #7)
> f12 with stock freetype.  

Qt 4.6.0 is not available on F12, how did you install it?

Comment 9 Artem S. Tashkinov 2009-12-31 11:33:19 UTC
Created attachment 381076 [details]
Bug reproduced in F12 + Qt 4.6.0

I have reproduced this bug in a VMWare VM in a stock F12:

Steps to reproduce:

1) Install a stock F12, without updating anything.
2) Update Qt 4.6.0 packages to their rawhide versions (qt-4.6.0-3.fc13.i686.rpm, qt-x11-4.6.0-3.fc13.i686.rpm via 'rpm -Uvh --nodeps').
3) Install terminus font.
4) run qtconfig-qt4, try to use Terminus font of different sizes.

Comment 10 Artem S. Tashkinov 2009-12-31 11:37:44 UTC
Bug description is obviously erroneous, as this issue affects F12, not F13.

Comment 11 Rex Dieter 2010-01-05 21:29:24 UTC
Can anyone else reproduce this?  (I cannot)

Comment 12 Artem S. Tashkinov 2010-01-05 21:48:27 UTC
(In reply to comment #11)
> Can anyone else reproduce this?  (I cannot)  

Have you tried to follow the recipe from comment 9? I can even upload a VM image demonstrating this bug.

Comment 13 Rex Dieter 2010-01-11 20:27:48 UTC
Yes, terminus looks fine for me.

Can you please try qt-4.6.0-5 ?  It includes a patch related to bitmap fonts (disables Xrender/antialiasing in this case).

See also,
http://bugreports.qt.nokia.com/browse/QTBUG-7255

Comment 14 Artem S. Tashkinov 2010-01-12 07:55:38 UTC
I've just downloaded and installed qt-x11-4.6.0-5.fc13.i686.rpm from Koji and nothing has changed for me.

Comment 15 Artem S. Tashkinov 2010-02-09 18:54:45 UTC
I cannot reproduce this problem no longer. Closing.


Note You need to log in before you can comment on or make changes to this bug.