fontsize and dpi

Dag-Erling Smørgrav des at des.no
Wed Aug 24 09:45:17 GMT 2005


Stijn Hoop <stijn at win.tue.nl> writes:
> I don't know when X gained the capability to decipher this on its own, but
> I know that lots of people were running with 75dpi on 100dpi monitors,
> resulting in horrible default fonts etc. One of the problems with webpages
> in *nix vs Windows, differing fontsizes, is caused by exactly this.

X will correctly determine the physical resolution on DDC-capable
monitors (with a DDC-capable graphics adapter, of course).  Otherwise,
it assumes 75dpi.  You can of course specify the correct resolution on
the command line, or (better yet) specify the display dimensions in
the configuration file and let X figure out the resolution.

BTW, back in the bad old days before Xft, X had 75dpi and 100dpi
renderings of most fonts and no good way to adapt those to
intermediate resolutions.  This is still the case for the most
commonly used monospace fonts.

DES
-- 
Dag-Erling Smørgrav - des at des.no



More information about the freebsd-chat mailing list