Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qt4 and font rendering.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kokoko3k
n00b
n00b


Joined: 06 May 2005
Posts: 72

PostPosted: Wed Oct 24, 2007 11:21 am    Post subject: Qt4 and font rendering. Reply with quote

I all, i noticed a strange behaviour in how the fonts are rendered by Qt4 Applications compared to GTK and/or Qt3 (KDE3.5.x)

Here's a quick example:
[*]IMAGE1: http://img520.imageshack.us/img520/9798/yaf7ge6.png

And a detailed one:
[*]IMAGE2: http://img145.imageshack.us/img145/7676/qt3qt4kc2.png


Qt3 on the left, Qt4 on the right, as you can see, rendering done by qt3 is much more sharper, qt4 tend to smooth out the font, and i would like to have qt4 one output like qt3 one.
Also i got the same result in another gentoo system (tried both 32 and 64 bit)

Some relevant info, maybe:
Code:
> xrdb -q |grep Xft
Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:        96.000000
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.rgba:       rgb

...But those values are shared by qt3/4 of course.

emerge --info
Code:

Portage 2.1.3.15 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Tue, 23 Oct 2007 01:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.3-r1, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/confcache:  0.4.2-r1
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.16
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/glftpd/etc /opt/glftpd/ftp-data /usr/NX/etc /usr/NX/home /usr/kde/3.4/env /usr/kde/3.4/share/conf
ig /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /u
sr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/te
xmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mi.mirror.garr.it/mirrors/gentoo/"
LDFLAGS="-Wl,--hash-style=both"
LINGUAS="it"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-afte                  r --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt ctype c                  ups dba dbus dri dvd dvdr dvdread eds emboss encode evo fam filepicker firefox flac fltk fortran ftp gdbm gif glibc-omitfp                   gnokii gphoto2 gpm graphviz gstreamer gtk hal iconv ifp imagemagick imlib ipod isdnlog java jingle jpeg jpeg2k kde kdeenabl                  efinal kdehiddenvisibility kerberos kipi ldap mad matroska midi mikmod mod moznopango mp3 mpeg mtp mudflap musicbrainz ncur                  ses njb nls nptl nptlonly nsplugin ntpl ntplonly offensive ogg openct openexr opengl openmp oss pam pcre pdf perl png pppd                   python qt3 qt3support qt4 quicktime rar rdesktop readline reflection samba sametime scanner sdl session smartcard sms spell                   spl srt ssl stream svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb utempter visualization vorbis win3                  2codecs x264 x86 xcomposite xine xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca010                  6 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82                  xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug l                  adspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse e                  vdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERL                  AND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_E                  XTRA_OPTS


eix x11-libs/qt
Code:
[I] x11-libs/qt
     Available versions:
        (3)     3.3.4-r8 3.3.8-r3 3.3.8-r4
        (4)     4.3.0-r2 4.3.1 4.3.1-r1 (~)4.3.2
        {accessibility cups dbus debug doc examples firebird gif glib immqt immqt-bc input_devices_wacom ipv6 jpeg mng mysql nas nis odbc opengl pch png postgres qt3support sqlite sqlite3 ssl tiff xinerama zlib}
     Installed versions:  3.3.8-r4(3)(14:47:46 10/23/07-cups gif opengl -debug -doc -examples -firebird -immqt -immqt-bc -ipv6 -mysql -nas -nis -odbc -postgres -sqlite -xinerama)
                          4.3.2(4)(15:20:16 10/23/07-cups dbus gif jpeg opengl png qt3support ssl tiff zlib -accessibility -debug -doc -examples -firebird -glib -input_devices_wacom -mng -mysql -nas -nis -odbc -pch -postgres -sqlite -sqlite3 -xinerama)
     Homepage:            http://www.trolltech.com/
     Description:         The Qt toolkit is a comprehensive C++ application development framework.


Does anybody knows what's goin' on? i hope KDE4 will not output like this!
Thanks in advance.
Back to top
View user's profile Send private message
kokoko3k
n00b
n00b


Joined: 06 May 2005
Posts: 72

PostPosted: Wed Oct 24, 2007 12:12 pm    Post subject: Reply with quote

Code:
cat ~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>
Back to top
View user's profile Send private message
pronuncer
n00b
n00b


Joined: 09 Dec 2007
Posts: 6

PostPosted: Sun Dec 09, 2007 6:22 am    Post subject: Reply with quote

I can confirm your observing. I actually prefer the new QT4 style which looks somewhat close to the MAC style.
Back to top
View user's profile Send private message
kokoko3k
n00b
n00b


Joined: 06 May 2005
Posts: 72

PostPosted: Mon Jan 14, 2008 7:34 pm    Post subject: Reply with quote

I don't, fonts appears with an hard green border all around.

Anyway, qt4 doesn't seems to need libXft (qt3 does):

Code:

Zool ~ # qtconfig & sleep 2 ; lsof -n|grep -i qtconfig|grep -i xft                    <--------qt4
[1] 7838

Zool ~ # /usr/qt/3/bin/qtconfig & sleep 2 ; lsof -n|grep -i qtconfig|grep -i xft            <-----------qt3
[2] 7844
[1]   Done                    qtconfig
qtconfig  7844       root  mem       REG                3,7     82648   14284172 /usr/lib64/libXft.so.2.1.2


Is that the normal behaviour, is there some use flag i need to enable to make qt4 renders fonts like gtk and qt3 does?

Thanks in advance.
Back to top
View user's profile Send private message
kokoko3k
n00b
n00b


Joined: 06 May 2005
Posts: 72

PostPosted: Sun Mar 09, 2008 11:27 pm    Post subject: Reply with quote

...By the way, guys at trolltech seem to care:
http://trolltech.com/developer/task-tracker/index_html?id=+195256&method=entry
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum