Leslie Katz wrote:
Thanks very much for your reply, Ben.

When you say that I could "set the monitor to its maximum resolution, then set the fonts to be larger", were you referring to some global font size setting that I could change, at least in Fedora Core 3? I ask because I was under the impression that I'd have to change font size application by application and that's what made me plump for a lower resolution than the maximum.

If you want constant size fonts then you need to set the display
size in /etc/X11/xorg.conf.  For example:

  Section "Monitor"
   Identifier "Monitor0"
   VendorName "Dell"
   ModelName "Latitude D600 with 1400x1050 panel"
   DisplaySize 284 213
   Option "dpms"
   # Bogus range from generic 1400x1050 CRT,
   # this LCD panel only runs at 60Hz.
   HorizSync 31.0 - 90.0
   VertRefresh 59.0 - 75.0
  EndSection

  Section "Screen"
   Identifier "Screen0"
   Device "Videocard0"
   Monitor "Monitor0"
   DefaultDepth 24
   SubSection "Display"
    Viewport 0 0
    Depth 24
    # LCD panel, so only one mode makes sense
    Modes "1400x1050"
   EndSubSection
  EndSection

Where the 284 x 213mm is roughly the size of the screen, mangled
to ensure that X dots per inch and the Y dots per inch come out
at the same value (since I know the pixels on this 4:3 screen are
square).  xdpyinfo says

 screen #0:
  dimensions:    1400x1050 pixels (284x213 millimeters)
  resolution:    125x125 dots per inch

If the DPI can't be calculated it defaults to 75x75DPI, which
is almost half of the real DPI for this particular screen and
leads to very small fonts.

All the GNOME and KDE stuff do is to allow the override of the
X11 DPI on a session basis.  Better to get the value calculated
by X11 right.

In /etc/X11/fs/config I also say
  default-resolutions = 125,125,100,100,75,75
so that a search for bitmap fonts in the old font system tries to
find the best fit.  Obviously you replace 125 by your DPI value.

Also do
  rpm -q -a | grep font | grep dpi
which returns say
  xorg-x11-fonts-ISO8859-1-75dpi-7.0-3
  xorg-x11-fonts-75dpi-7.0-3
Where there are any 75DPI bitmap fonts also install the 100DPI
font if you have a DPI near to or greater than 100:
  yum install xorg-x11-fonts-100dpi xorg-x11-fonts-ISO8859-1-100dpi

Now when the font system tries to paint a 12 point font it
will make it 12/72 inches high on your screen, exactly the
same size it would as if the font were being printed on paper.

Cheers,
Glen
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to