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

Re: Fonts too big in XF 4.01



On Fri, Nov 10, 2000 at 02:08:48PM -0700, Hubert Chan wrote:
> 
> AFAIK, XF4 defaults to 100dpi, while XF3 defaulted to 75dpi, so fonts
> specified using point sizes (1 point = 1/72 in) will be bigger.  Some
> applications specify fonts using pixel sizes, so they will stay the
> same.
> 
> Start X with the "-dpi 75" option.  IIRC, if you use the "startx"
> command, you call it as startx -- -dpi 75 If you use xdm, gdm, or kdm
> (or something else like that), you'll need to tell it to launch the X
> server with that option.  For xdm, edit the /etc/X11/xdm/Xservers
> file, and add "-dpi 75" to the end of the line that begins ":0 local
> /usr/X11R6/bin/X11".  I'm not sure about the others.

One little-documented feature in X4 (that may change, but i hope not) is
the DisplaySize keyword in the Monitor section. I use that to tell X
that my monitor's displayable area is 319.024x239.268mm, and from that
and the pixel size X will calculate the DPI for me. Why it wants
millimeters, i don't know.

I did have to edit /etc/X11/xdm/Xservers, the default file passed
'-dpi 100' to X, which overrides this setting.

Even with this, the fonts in the Netscape controls were too large until
i put 75dpi before 100dpi in my font path... Or maybe i've just gotten
used to the too-small fonts from X3, so seeing them at the intended size
looked too big? ;)


-- 
  finger for GPG public key.

Attachment: pgp5NB5VzJRA2.pgp
Description: PGP signature


Reply to: