View previous topic :: View next topic |
Author |
Message |
torf n00b
Joined: 27 Apr 2004 Posts: 65 Location: Constance/Germany
|
Posted: Sat Aug 22, 2009 9:21 am Post subject: [Solved] Fonts too big |
|
|
I just switched from the binary ATI drivers to the open source drivers (see this guide). Now pretty much all my fonts are too big (in X), e.g. in vim, Firefox, liferea, etc. I've been through http://en.gentoo-wiki.com/wiki/X.Org/Fonts to make sure the settings are OK (although the font size was perfect before switching drivers). It seems to be a common problem, and googling turned up quite a lot of results. But all of them boil down to changing the DPI settings, and I don't think that's correct, since IIRC X takes care of that if the DisplaySize is set correctly. Any pointers are appreciated!
I'm running a ThinkPad T60 2007-ZT6, graphic card is an ATI Mobility RADEON X1400 and I'm using the openbox WM.
(BTW: I'm sure this has been asked on these forums before, but the forum search just doesn't do its job properly )
Code: | $ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen" 0 0
InputDevice "Mouse" "CorePointer"
InputDevice "Keyboard" "CoreKeyboard"
EndSection
#Section "ServerFlags"
# Option "AIGLX" "off"
#EndSection
Section "Files"
# See also ~root/font_list_fix.py
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/freefonts"
FontPath "/usr/share/fonts/default/ghostscript"
FontPath "/usr/share/fonts/baekmuk-fonts"
FontPath "/usr/share/fonts/kochi-substitute"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/ttf-bitstream-vera"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
EndSection
Section "Module"
Load "record"
Load "glx"
Load "extmod"
Load "xtrap"
Load "dbe"
Load "GLcore"
Load "dri"
EndSection
Section "dri"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "false"
EndSection
Section "InputDevice"
Identifier "Keyboard"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor"
Option "VendorName" "ThinkPad monitor"
Option "ModelName" "ThinkPad monitor"
Option "DPMS" "true"
DisplaySize 291 212
EndSection
Section "Device"
Identifier "Card"
Driver "radeon"
BusID "PCI:1:0:0"
Option "DRI" "true"
EndSection
Section "Screen"
Identifier "Screen"
Device "Card"
Monitor "Monitor"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection |
Code: | $ xdpyinfo | grep resolution
57: resolution: 124x124 dots per inch |
Code: | $ xrandr
Screen 0: minimum 320 x 200, current 1400 x 1050, maximum 1400 x 1400
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1400x1050+0+0 (normal left inverted right x axis y axis) 287mm x 215mm
1400x1050 60.0*+ 50.0
1280x1024 59.9 60.0
1280x960 60.0 59.9
1280x854 59.9
1280x800 59.8
1280x720 59.9
1152x768 59.8
1024x768 60.0 59.9
800x600 60.3 59.9 56.2
640x480 59.9 59.4
DVI-0 disconnected (normal left inverted right x axis y axis) |
Code: | $ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r8-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Thu, 20 Aug 2009 15:45:01 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake: 2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-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.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 avi bash-completion berkdb bluetooth bzip2 cairo cddb cdparanoia cdr cjk cli cracklib crypt cups dri dvd dvdr dvdread emacs encode exif ffmpeg flac gdbm gif gnuplot gpm gtk iconv icq imap ipv6 isdnlog jpeg kpathsea latex libnotify mad madwifi mozdom mp3 mpeg mudflap ncurses nls nptk nptl nptlonly ogg opengl openmp oscar oss pam pcre pdf perl png pop pppd python qt quicktime readline reflection sdl session slang spamassassin spl ssl svg sysfs tcpd tiff truetype type1 unicode vim-syntax vorbis x86 xorg xosd xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
EDIT: Seems my Xorg.0.log was to long for the forum software. See here: Xorg.0.log
Last edited by torf on Sun Aug 23, 2009 9:08 am; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Aug 22, 2009 11:16 am Post subject: Re: Fonts too big |
|
|
torf wrote: | changing the DPI settings, and I don't think that's correct |
You haven't said whether you've actually *tried* it. |
|
Back to top |
|
|
micmac l33t
Joined: 28 Nov 2003 Posts: 996
|
Posted: Sat Aug 22, 2009 11:18 am Post subject: |
|
|
Hi!
Googled for you laptop and found a post that it has a resolution of 1400x1050 (SXGA+). If that's accurate 124 dpi is correct.
Maybe the previous driver didn't calculate dpi correctly. So now you have a correct but different settings and your fonts appear bigger. I'd just change the font sizes (in your control center and browser).
Good luck! |
|
Back to top |
|
|
stalker n00b
Joined: 18 Jun 2003 Posts: 41
|
Posted: Sat Aug 22, 2009 11:41 am Post subject: |
|
|
I had a similiar problem with the nvidia switch. My laptop should have a DPI of 125, but I have it set to 96 (it's KDE option) and that seems to give me the proper sizes of things. Messing with the real font sizes leads to bad results. _________________ Look behind you...
Think outside the box, give the cat a chance. |
|
Back to top |
|
|
torf n00b
Joined: 27 Apr 2004 Posts: 65 Location: Constance/Germany
|
Posted: Sun Aug 23, 2009 9:08 am Post subject: Re: Fonts too big |
|
|
PaulBredbury wrote: | torf wrote: | changing the DPI settings, and I don't think that's correct |
You haven't said whether you've actually *tried* it. |
I hadn't. I was thinking that changing the DPI was the wrong way of selecting font sizes (from a logical point of view). After some more research I found out that it actually is the most common way of doing it. I then gave it a try, and it works, kind of. Here's what I did:
There are dozens of places where you can adjust DPI settings. I read this guide and that one. To set my DPI to 96 I then
- Added 'Xft.dpi: 96.0' to my .Xresources
- Changed my DisplaySize setting in the xorg.conf such that it matches 96 DPI @ my resolution. I also set the "NoDDC" option in the device section to "true" since X kept ignoring the DisplaySize
- Finally I added 'xrandr --dpi 96' to xdm's Xsetup_0
I'm not sure if all these steps are necessary, but without the last one, xdpyinfo still reports a wrong DPI setting. Now everything was fine except for Firefox and the XDM login screen. I adjusted these using Firefox' userChrome.css (see this guide) and the XDM config files.
Now everything looks as expected. It's not a clean solution, but at least it's a solution. I'd still like to know if there's a better way to do it, but it seems that this is the way everybody does it...
micmac wrote: | Maybe the previous driver didn't calculate dpi correctly. So now you have a correct but different settings and your fonts appear bigger. I'd just change the font sizes (in your control center and browser). |
The thing is that changing the font sizes is a lot of work. You need to do it in the GTK settings, in the Vim settings, in the Firefox settings, the XDM settings, your window manager's settings, etc. Now before switching drivers the font sizes were fine, so this seems a lot of work (and if you then decide that your fonts should be smaller still, you have to redo everything). Now I still have to change 3 DPI settings + Firefox + XDM, but I think it's less work
stalker wrote: | I had a similiar problem with the nvidia switch. My laptop should have a DPI of 125, but I have it set to 96 (it's KDE option) and that seems to give me the proper sizes of things. Messing with the real font sizes leads to bad results. |
Yes, it seems that one cannot trust the DPI value calculated for the real display size.
Thanks everybody for the help! |
|
Back to top |
|
|
stalker n00b
Joined: 18 Jun 2003 Posts: 41
|
Posted: Sun Aug 23, 2009 10:21 am Post subject: |
|
|
All that does seem to be overkill.
I only had to change "force fonts" setting in KDE and then everything seemed fine, from what I remember. No comment on XDM. I'm now using the binary driver again (now that hibernation works), but I don't remember firefox misbehaving, especially cause I never looked at setting it's own DPI.
I think you should look for a global force fonts setting, and that might simply the situation. _________________ Look behind you...
Think outside the box, give the cat a chance. |
|
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
|
|