2007-10-30

Font problems with Nvidia driver in Ubuntu

After I switched to using the Nvidia proprietary driver in Ubuntu instead of the nv driver, the font sizes on my system were all wacky (many, but not all, became too small). After some research I discovered that it was due to the DPI being set wrong in X. There is a great post here about what causes the problem and how to fix it:

nVidia versus fonts!

The short version is you need to figure out the DPI of your screen and then add the following lines to the Device section for your nvidia driver in xorg.conf:

Option "UseEdidDpi"   "false"
Option "Dpi" "92 x 92"

Replace 92 x 92 with the horizontal and vertical DPI of your display.