Font sizes and Xserver dpi settings

Tagged:  •    •    •  

If you experience different font sizes whenever you plug a different monitor to your laptop, maybe you are hit by Xorg's Xserver default behavior to detect the dpi settings from the current DDI data of the screen. This gives in most cases not the expected result for the user, thus forcing the Xserver to a fixed dpi setting is a good idea.

Under KDE you can force the font engine to use fixed dpi setting (96, or 120). But if you are using non-KDE applications too, you may want to set it to the running Xserver directly. Unfortunatelly, there is no option in xorg.conf to do that, so you have to modify you session start script and add the -dpi option of the X server executable.

For KDM 4.x edit the config file (under Gentoo: /usr/share/config/kdm/kdmrc) and change the line:

ServerArgsLocal=-nolisten tcp

to:

ServerArgsLocal=-nolisten tcp -dpi 96

Trackback URL for this post:

http://lepetitfou.dyndns.org/home/trackback/72

Unfortunatelly, there is no option in xorg.conf to do that, so you have to modify you session start script and add the -dpi option of the X server executable. : thanks a lot

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • You may link to images on this site using a special syntax

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
4 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Syndicate content