[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: screen resolution, font size and real estate

Jochen Schulz on 05/06/06 13:49, wrote:
Adam Hardy:
Can I do anything to globally affect all font sizes in X, not just in the bits that KDE controls?

The easiest way to make sure X knows your real dpi:

- Run this:
  xdpyinfo | grep dots
     resolution:    92x92 dots per inch

  If xdpyinfo shows 76 dpi, this is most probably false (unless you have
  a very large monitor running at 1280x1024).

- Measure your display's visible dimensions. This is easy with TFT
  displays and a little bit trickier for CRTs. But it doesn't have to be
  100% accurate anyway.

- In your /etc/X11/xorg.conf (or XF86Config if you are running stable)
  search for your "Monitor" section. Add a line like
  DisplaySize 280 212
  to this section with your display's dimensions in millimetres

- Restart X

- Run 'xdpyinfo | grep dots' again to see if it has changed.

At this point, your fonts might actually look screwed in some
applications. *But*: now all your applications (be it KDE, Gnome or
plain X) should display all fonts with the same point size at the same
real size.

I tried making the changes in the gnome dialog as well after installing 140MB of it - I'm afraid I didn't get anywhere, but wierdly there is a dialog box there for fonts with an input box for dpi - and when I increased the given dpi from 96 upwards, the text on the dialog box got bigger! Strangely counter-intuitive. So I left it at 96 dpi and changed back into KDE.
Here's my .gtkrc-2.0:

include "/usr/share/themes/Raleigh/gtk-2.0/gtkrc"

style "user-font"
font_name="Sans 8"
widget_class "*" style "user-font"

include "/home/adam/.gtkrc-2.0.mine"


And xdpyinfo gives this (my xrdb -query gives no output):

xdpyinfo |grep resol
resolution:    100x100 dots per inch

In the monitor section in xorg.conf I put
DisplaySize     360 286

but that made no difference.

Reply to: