View previous topic :: View next topic |
Author |
Message |
carcajou Apprentice
Joined: 10 Jun 2008 Posts: 240
|
Posted: Sat Dec 11, 2010 6:28 pm Post subject: GTK applications' font size in KDE? |
|
|
Hello all. Recently I made a fresh Gentoo install on my new laptop. For quite some time on Linux and all time spent on Gentoo I used KDE. In order to make GTK apps look nice in KDE, I've used gtk-chtheme (mainly qtcurve style + 9px font size). That was whole procedure and it worked like a charm.
After fresh install, I did the same thing. However, GTK apps respect chosen style but not declared font size. I haven't used Gentoo from end of July, so it is quite possible that something changed and I am not aware what exactly. Searched the forums, however haven't found anything useful. Tried with kcm_gtk also, but the result is the same.
Here are some relevant information:
My .gtkrc-2.0:
Code: |
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"
style "user-font" {
font_name = "Sans 9"
}
widget_class "*" style "user-font"
gtk-font-name="Sans 9"
gtk-theme-name = "QtCurve"
include "/home/kuki/.gtkrc.mine"
# -- THEME AUTO-WRITTEN DO NOT EDIT
|
Xdpyinfo output for dimensions and resolution:
Code: |
resolution: 96x96 dots per inch
dimensions: 1280x800 pixels (338x211 millimeters)
|
eselect fontconfig list:
Code: |
[1] 10-autohint.conf *
[2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[4] 10-sub-pixel-rgb.conf *
[5] 10-sub-pixel-vbgr.conf
[6] 10-sub-pixel-vrgb.conf
[7] 10-unhinted.conf
[8] 20-fix-globaladvance.conf *
[9] 20-unhint-small-dejavu-sans-mono.conf *
[10] 20-unhint-small-dejavu-sans.conf *
[11] 20-unhint-small-dejavu-serif.conf *
[12] 20-unhint-small-vera.conf
[13] 25-unhint-nonlatin.conf
[14] 30-metric-aliases.conf
[15] 30-urw-aliases.conf
[16] 40-nonlatin.conf *
[17] 45-latin.conf
[18] 49-sansserif.conf
[19] 50-user.conf
[20] 51-local.conf
[21] 57-dejavu-sans-mono.conf *
[22] 57-dejavu-sans.conf *
[23] 57-dejavu-serif.conf *
[24] 60-latin.conf
[25] 60-liberation.conf *
[26] 65-fonts-persian.conf
[27] 65-khmer.conf
[28] 65-nonlatin.conf
[29] 69-unifont.conf
[30] 70-no-bitmaps.conf *
[31] 70-yes-bitmaps.conf
[32] 80-delicious.conf
[33] 90-synthetic.conf
|
In the end, emerge --info:
Code: |
Portage 2.1.9.24 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7350_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 10 Dec 2010 20:15:02 +0000
app-shells/bash: 4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python: 2.6.5-r3, 3.1.2-r4
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc: 0.6.8
sys-apps/sandbox: 2.3-r1
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.netcologne.de/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://tux.rainside.sk/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt css cups cxx dbus device-mapper dri dts dv dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran ftp gdbm gif gnutls gtk gzip hal iconv ieee1394 imap jabber jpeg kde lame lcms ldap lzma mad matroska mikmod mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib ncurses networkmanager nls nptl nptlonly nvidia offensive ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime raw readline ruby sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs taglib tcpd theora threads tiff truetype unicode usb v4l2 vcd vim-syntax vnc vorbis wifi x264 xcb xft xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
Xorg-server is 1.7.7-r1 and it is configured automatically (it always been).
Thank you for your help.
Regards,
Alex |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sun Dec 12, 2010 7:29 am Post subject: |
|
|
Try "Use my KDE fonts in GTK apps" in kcm_gtk.
Here's my gtkrc:
Code: | include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"
style "user-font"
{
font_name="DejaVu Sans"
}
widget_class "*" style "user-font"
gtk-theme-name="QtCurve"
gtk-font-name="DejaVu Sans 9" |
|
|
Back to top |
|
|
carcajou Apprentice
Joined: 10 Jun 2008 Posts: 240
|
Posted: Sun Dec 12, 2010 10:43 am Post subject: |
|
|
Tried it, but problem remains. Tried with you .gtkrc also, but font size is still the same. Thank you anyway.
Other ideas? |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Sun Dec 12, 2010 5:18 pm Post subject: |
|
|
I run run GTK apps under e16. I use LXAppearance to adjust the style and the font size. I believe everything is done via these two files: Code: | $ cd
$ head .gtkrc-2.0*
==> .gtkrc-2.0 <==
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine
gtk-theme-name="my-Blue-Joy"
gtk-icon-theme-name="ROX"
gtk-font-name="DejaVu Sans 10"
gtk-toolbar-style=1
include "/home/juser/.gtkrc-2.0.mine"
==> .gtkrc-2.0.mine <==
include "/usr/share/themes/Emacs/gtk-2.0-key/gtkrc"
gtk-key-theme-name="Emacs"
gtk-double-click-time = 250 |
|
|
Back to top |
|
|
carcajou Apprentice
Joined: 10 Jun 2008 Posts: 240
|
Posted: Sun Dec 12, 2010 11:19 pm Post subject: |
|
|
After little experimenting, it seems that GTK apps respect defined font size in .gtkrc, only in case QtCurve theme/style is not used. Currently, with Raleigh font's size is ok. Obviously, there is something "wrong" with gtkrc from QtCurve. I have installed keyworded version of gtk-engines-qtcurve - 1.8.1. I'll try with older version ("stable" one) and I'll report my findings later.
UPDATE:
It seems that problem is also present with older gtk-engines-qtcurve. Other GTK themes are not causing font size problem. Raleigh, Murrine, Nuvola and Nodoka tested. |
|
Back to top |
|
|
|
|
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
|
|