Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252312 - x11-libs/qt-gui: hardcoded font substitution
Summary: x11-libs/qt-gui: hardcoded font substitution
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 21:12 UTC by Ivan Mironov
Modified: 2009-02-20 07:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Difference between Qt3 and Qt4 font rendering (ugly-qt4-fonts.gif,2.33 KB, image/gif)
2008-12-23 21:24 UTC, Ivan Mironov
Details
missing patch (hardcoded_fonts.patch,520 bytes, text/plain)
2009-02-12 16:36 UTC, Chris Slycord
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Mironov 2008-12-23 21:12:53 UTC
At least cyrillic characters in Qt4 applications looks ugly because font substitution hardcoded in Qt GUI library (i.e. "Sans Serif" -> "Helvetica"). And this can't be changed by qtconfig or manually editing .config/Trolltech.conf.

I found a patch that fixes this problem: https://cvs.fedoraproject.org/viewvc/rpms/qt4/F-8/qt-x11-opensource-src-4.3.4-no-hardcoded-font-aliases.patch?view=markup (tested with x11-libs/qt-gui-4.4.2).
Comment 1 Ivan Mironov 2008-12-23 21:24:14 UTC
Created attachment 176254 [details]
Difference between Qt3 and Qt4 font rendering

This is parts from screenshots of qtconfig 3 and 4 with identical font settings (family: Sans Serif, style: Normal, point size: 9).
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2008-12-24 14:26:16 UTC
Thanks for the patch.

I ll take a look and report back
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-01-07 18:12:05 UTC
This patch has been applied on qt-gui-4.5 ebuild which is on kde-crazy overlay.

Since I cant test it on my machines ,could you please give it a shot and tell me if it fixes your issue?

Thanks
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2009-01-30 15:26:57 UTC
The ebuild can now be found on qting-edge overlay

Please give it a shot to verify that this patch solves your issue 
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2009-02-12 11:59:17 UTC
This patch now applies on qt-gui-4.5.0_rc1 . You might want to test it and report here any problems
Comment 6 Chris Slycord 2009-02-12 16:36:50 UTC
Created attachment 181798 [details]
missing patch

Uploading patch for those who don't want to search for the overlay.
Comment 7 Chris Slycord 2009-02-12 16:40:15 UTC
(In reply to comment #6)
> Created an attachment (id=181798) [edit]
> missing patch
> 
> Uploading patch for those who don't want to search for the overlay.
> 

Nevermind that wasn't needed I am too tired.
Comment 8 Ivan Mironov 2009-02-20 07:53:19 UTC
This patch is already included in ebuild x11-libs/qt-gui-4.5.0_rc1-r1, so I think that the bug can be closed.