QTPixmap GTK engine (C) Craig Drummond (Craig.Drummond@lycos.co.uk) ================================================================================== About ----- This is a GTK engine that allows re-colouring of pixmaps based upon Qt's colour settings. It will also try to match the font settings. Installation ------------ ./configure --prefix=/where/you/want/to/install/this make make install (as root) then copy /where/you/want/to/install/this/share/themes/Geramik/gtk/gtkrc ...to either /etc/gtk/gtkrc or ~/.gtkrc For GTK2 apps, copy /where/you/want/to/install/this/share/themes/Geramik/gtk-2.0/gtkrc ...to either /etc/gtk-2.0/gtkrc or ~/.gtkrc-2.0 *OR* Another, simpler way is to edit ~/.gtkrc (GTK1) or ~/.gtkrc-2.0 (GTK2) and just have the following line: include "/where/you/want/to/install/this/share/themes/Geramik/gtk/gtkrc" -or- include "/where/you/want/to/install/this/share/themes/Geramik/gtk-2.0/gtkrc" Font Sizes ---------- Using Mandrake 9.0 I came accross a curious situation where a 12pt font was a different size in a KDE app (which uses Xft to draw fonts), and a GTK1 app (which uses plain X to draw fonts). I finally tracked this down to the fact that Mandrake was hard-coding a 90dpi resolution for Xft - wherease standard X defaults to 75dpi. To remedy this I had to remove the following line: Xft.dpi: 90 ...from both /etc/X11/Xresources /etc/X11/xdm/Xresources Then when the X server was restarted, both Xft and X apps then used the *same* resolution - resulting in consistency between GTK1, GTK2, and KDE/Qt applications. (NOTE: You maky need to change the used font siszes in KControl/fonts) If you want to use a higher than 75 dpi resolution, I suggest you edit /etc/X11/xdm/Xservers and set it to someting like (for 100dpi) :0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16 -dpi 100 ...this way *both* Xft and X apps will then use the new resolution! For GTK1 apps, if you are having problems with font encodings, set the QT_GTK_ENC to your required encoding. e.g. export QT_GTK_ENC=iso8859-2