Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87040 - KDE and Gnome have font interoperability issues, and fixing one screws up the other
Summary: KDE and Gnome have font interoperability issues, and fixing one screws up the...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-28 15:38 UTC by Jeff Mitchell
Modified: 2005-07-11 15:50 UTC (History)
1 user (show)

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


Attachments
KDE Control Center in the beginning, normal (normal_kde_cc.png,202.37 KB, image/png)
2005-03-28 16:37 UTC, Jeff Mitchell
Details
The Gnome Control Center in the beginning with too small fonts (abnormal_gnome_cc.png,62.65 KB, image/png)
2005-03-28 16:38 UTC, Jeff Mitchell
Details
The Gnome Control Center after opening the Font control (normal_gnome_cc.png,69.09 KB, image/png)
2005-03-28 16:39 UTC, Jeff Mitchell
Details
KDE Control Center with fonts too large (abnormal_kde_cc.png,230.65 KB, image/png)
2005-03-28 16:40 UTC, Jeff Mitchell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Mitchell 2005-03-28 15:38:23 UTC
When I first installed Gentoo and fired up X my fonts were huge. I found out later that this was due to using the wrong dpi fonts, so now my kdm/gdm/xdm config passes in the -dpi 75 paramter.  This makes KDE look fantastic.

Unfortunately, GTK apps have tiny fonts. I can fix this by going into gnome-control-center and double-clicing on the Font control.  When I do this, before my very eyes, the fonts in gnome-control-center get bigger, and thereafter every GTK app's fonts are the nice, normal size they should be (note that going to the font control directly with gnome-font-properties achieves the same result.

However, once I do this, my fonts in KDE are screwed up -- they are extremely large again, until I kill X and restart.

I'm guessing that some setting is being set (or unset) by gnome-font-properties, but I'd like to have the fonts in both systems look correct, all of the time (hope that's not too much to ask!)  As I don't experience this problem in SUSE, or Fedora Core, both of which were on my laptop before Gentoo, I know that this can be fixed, but now how.

Reproducible: Always
Steps to Reproduce:
1. Start KDE.  Enjoy the normal fonts with Qt apps and strain to see fonts with GTK apps.
2. Start gnome-font-properties. Watch the GTK fonts magically, instantly get normal size.  Enjoy them.
3. Start Qt apps again (such as the KDE Control Center) and sigh at the huge fonts that have taken the place of the previously-normal ones.




I will add emerge info information later -- I'm not on the correct computer.
Comment 1 Jeff Mitchell 2005-03-28 16:25:01 UTC
emerge --info:
scales root # emerge --info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-ck3 i686)
=================================================================
System uname: 2.6.11-ck3 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 20 2005, 11:41:26)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi aim alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzlib calendar cdparanoia cdr crypt cups curl divx4linux dvd dvdr dvdread emboss encode esd exif expat fam ffmpeg flac font-server foomaticdb fortran ftp gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal icq imagemagick imap imlib jabber java javascript jikes joystick jpeg kde libg++ libwww mad maildir mbox mikmod mime mmap mmx motif mozilla mp3 mpeg msn mysql mysqli ncurses nls nptl ogg oggvorbis opengl oscar oss pam pdflib perl php png pnp python qt quicktime readline recode samba sdl sharedext sharedmem slang slp sndfile sockets spell sse ssl svg svga sysfs tcpd tetex threads tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd wifi wxwindows xine xml2 xosd xpm xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


xorg.conf:

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the 
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
	ModulePath   "/usr/X11R6/lib/modules"
	ModulePath   "/usr/X11R6/lib/modules/extensions"
	ModulePath   "/usr/X11R6/lib/modules/extensions/nvidia"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
#	FontPath     "/usr/share/fonts"
	FontPath     "unix/:-1"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "fbdevhw"
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "type1"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#	Option	"Xleds"		"1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#	Option	"XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#	Option	"XkbModel"	"pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#	Option	"XkbModel"	"microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#	Option	"XkbLayout"	"de"
# or:
#	Option	"XkbLayout"	"de"
#	Option	"XkbVariant"	"nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#	Option	"XkbOptions"	"ctrl:swapcaps"
# Or if you just want both to be control, use:
#	Option	"XkbOptions"	"ctrl:nocaps"
#
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver	"synaptics"
	Option	"Protocol" "auto-dev"
	Option	"Device" "/dev/input/mice"
	Option	"LeftEdge"		"120"
	Option	"RightEdge"		"830"
	Option	"TopEdge"		"120"
	Option	"BottomEdge"		"650"
	Option	"FingerLow"		"14"
	Option	"FingerHigh"		"15"
	Option	"MaxTapTime"		"360"
	Option	"MaxTapMove"		"110"
	Option	"EmulateMidButtonTime"	"75"
	Option	"VertScrollDelta"	"20"
	Option	"HorizScrollDelta"	"20"
	Option	"MinSpeed"		"0.3"
	Option	"MaxSpeed"		"1.5"
	Option	"AccelFactor"		"0.040"
	Option	"EdgeMotionMinSpeed"	"200"
	Option	"EdgeMotionMaxSpeed"	"200"
	Option	"UpDownScrolling"	"1"
	Option	"CircularScrolling"	"1"
	Option	"CircScrollDelta"	"0.1"
	Option	"CircScrollTrigger"	"2"
#	Option	"ZAxisMapping" "4 5"
#	Option	"Emulate3Buttons" "yes"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "LCD Panel 1920x1200"
	HorizSync    31.5 - 90.0
	VertRefresh  60.0 - 60.0
	ModeLine     "1920x1200" 193.2 1920 2048 2256 2592 1200 1201 1204 1242 -hsync +vsync
	Option	    "dpms"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "nvidia"
	VendorName  "Videocard vendor"
	BoardName   "NVIDIA GeForce FX Go 5650"
	Option	    "NoLogo" "yes"
	Option	    "RenderAccel" "On"
	Option	    "NvAGP" "1"
	Option	    "FlatPanelProperties" "Scaling = aspect-scaled, Dithering = default"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes    "1920x1200" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1920x1200" "1600x1200" "1400x1050" "1280x1024" "1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Group        0
	Mode         0666
EndSection

Comment 2 Jeff Mitchell 2005-03-28 16:37:39 UTC
Created attachment 54727 [details]
KDE Control Center in the beginning, normal

The KDE Control Center in the beginning, with normal fonts.
Comment 3 Jeff Mitchell 2005-03-28 16:38:45 UTC
Created attachment 54728 [details]
The Gnome Control Center in the beginning with too small fonts

The Gnome control center before opening up the Font control.  The fonts are too
small.
Comment 4 Jeff Mitchell 2005-03-28 16:39:29 UTC
Created attachment 54729 [details]
The Gnome Control Center after opening the Font control

The Gnome Control Center after opening the Font app.  Note that the fonts are
now the correct size.
Comment 5 Jeff Mitchell 2005-03-28 16:40:49 UTC
Created attachment 54730 [details]
KDE Control Center with fonts too large

The KDE Control Center after opening up the Gnome Font control app.  The fonts
are now too large, even though GTK programs now have normal sized fonts instead
of small ones.
Comment 6 Jeff Mitchell 2005-03-28 16:41:09 UTC
(By the way, I stole my xorg.conf file from my Fedora Core install (the fonts work there!), hence the comments that aren't normal for a Gentoo xorg.conf).

Attached are some files.  normal_kde_cc.png shows what the KDE Control Center looks like in the beginning, with normal fonts. abnormal_gnome_cc.png shows what the Gnome control center looks like in the beginning, where the fonts are really small. normal_gnome_cc.png shows what the Gnome control center looks like after I open up the Font control app, with the Gnome fonts the correct size, and finally abnormal_kde_cc.png shows what the KDE Control Center looks like after opening up the Font app, with the fonts too large.
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-05-29 07:24:58 UTC
Starting gnome-font-properties will start the gnome-settings-daemon, which 
takes over the font settings, I don't we can do much for it on the kde side. 
 
Note that this is not Gentoo specific, e.g.: 
http://ubuntuforums.org/archive/index.php/t-22821.html 
http://www.guilinux.com/viewtopic.php?topic=321&forum=93 
 
Maybe properly setting resolution/dpi could help: 
1920x1200 + 75dpi --> X thinks your monitor has a ~30 inches diagonal. 
 
Comment 8 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-19 16:31:28 UTC
Have you tried using a different dpi? That seems the saner thing to do. 
Comment 9 Jeff Mitchell 2005-06-19 17:04:46 UTC
That's kind of the problem.  I have the DPI set how I want it, passing -dpi 75
to X via kdmrc's ServerCmd, but what *seems* to be happening is that when the
Gnome font control is opened, it changes the DPI of all the fonts.  This results
in Gnome fonts looking nice, at the right size (which they don't until the Gnome
font control is opened...they're too small), but the KDE fonts being huge.

What I need to do is get the Gnome fonts bigger to begin with, and the gnome
settings daemon or whatever it is that's causing this problem to not change the
DPI of all the X fonts, which it seems to be doing.
Comment 10 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-20 00:58:50 UTC
> What I need to do is get the Gnome fonts bigger to begin with, and the gnome   
> settings daemon or whatever it is that's causing this problem to not change   
the   
> DPI of all the X fonts, which it seems to be doing.   
   
Reassigning to the gnome team as this is a request concerning  
gnome-settings-daemon. (But this is probably an UPSTREAM bug/feature as  
documented in comment #7.) 
 
However, please realize that the dpi setting is not a free parameter, it 
should be consistent with the resolution you use and the screen size. If 
resolution and dpi are not consistent, a lot of applications will be confused. 
 
Comment 11 foser (RETIRED) gentoo-dev 2005-06-21 10:24:48 UTC
what does 'xdpyinfo | grep resol' give in an xterm ?
Comment 12 Jeff Mitchell 2005-06-25 12:29:27 UTC
The command gives the following:

resolution:    100x100 dots per inch

I should note that I changed the resolution to 100 (using -dpi 100 instead of
-dpi 75) to try to get it to even up a bit.  This worked a little, but starting
the gnome font properties dialog still changes the KDE fonts...they're just a
little more uniform at 100 dpi.
Comment 13 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-11 15:15:14 UTC
Closing as UPSTREAM after seeing these references: 
http://bugzilla.gnome.org/show_bug.cgi?id=104341 
http://bugzilla.gnome.org/show_bug.cgi?id=151816 
 
The discussion can be moved there. 
 
Comment 14 Jeff Mitchell 2005-07-11 15:50:57 UTC
Thanks.  I'll get on the Gnome team's case about this.  Looks like its a serious
and long standing bug.