2013年11月9日星期六

How To Tackle Crazy Font Sizes In Linux

I recently set up Arch Linux (which is awesome, by the way) on my laptop, and noticed a bit of a problem... despite my resolution, 1680x1050, which usually makes fonts look tiny, all of my system fonts were huge. I've seen this problem before, and it seems to be a fairly common issue, which is actually pretty easy to fix. The real issue here is that your graphics card and X-server are trying to 'guess' your dpi, and they are failing at it. Horribly failing. A quick way to check your dpi
is:
xdpyinfo |grep resolution

75~ dpi is pretty normal for a 1024x768 monitor, but for most resolutions, you want something more like 90-100 dpi (96 is pretty standard). If you have an nVidia graphics card, this is easy.

sudo vim /etc/X11/xorg.conf
and in the section for your graphics card, add:

Section "Device"
...
#this tells Xorg to ignore the gpu's dpi guess
Option "UseEdidDpi" "false"
Option "DPI" "96 x 96"
EndSection

That was painless, right? Now, when you reset your X-server, it will be forced into the dpi you provided. If you don't have an nVidia card, you may need to do a bit of math. You will have to provide your X-server with a set of measurements in millimeters, which are based on this formula:

Width(mm) = [width(pixels)*25.4] / DPI
and
Height(mm) = [height(pixels)*25.4] / DPI

For example, for 1680x1050 at 96 DPI,

444 = (1680*25.4) / 96
277 = (1050*25.4) / 96

Numbers are rounded down. Now that you have these measurements, in the "Monitor" section of you xorg.conf,

Section "Monitor"
...
#this is 96dpi at 1680x1050 resolution
DisplaySize 444 277
EndSection

And thats it! If there aren't any other problems, you should be able to reset your X-server, and have normal fonts again.
Good luck!
TC

http://www.biosyourlife.com
Links:
SD Card Data Recovery is an amazing utility which is good at helping users recover photos from sd card. With SD Card Recovery, the following questions can be completely solved: How to Recover Pictures from SD Card , How to Recover Deleted Files from SD Card , How to Recover Deleted Files from SD Card , How to Recover Photos from SD Card . And people will never doubt if it is possible to recover files from sd card. SD Card Recovery is an easy-to-use tool and can undelete sd card in just 3 steps.

Do you want to get your data back? Do you want to know how to recover files removed from recycle bin? Wise Data Recovery Software is the most effective and efficent software to restore your lost data. Digital Photos Recovery is specialized in recovering digital photos from memory card and digital device. Wise data recovery Software is professional data recovery tool which is specialized in recovering deleted files on your system and undeleting files from almost all digital device with ease. With Wise data recovery Software, people will never be worried about accidentally deletion of files, even shift+del deletion or empty recycle bin. In fact, Wise data recovery Software supports more than 600 kinds of files.
Wise Data Recovery Software is professional data recovery tool which is specialized in recovering deleted files on your system and undeleting files from almost all digital device with ease.With Wise Data Recovery Software, people will never be worried about accidentally deletion of files, even after shift+del deletion or empty recycle bin. You can get data back in just 3 steps. In fact, Wise Data Recovery Software supports more than 600 kinds of files.

Smart Evidence Cleaner Pro provides customers with Registry Backup, System Backup, Favorites Backup and Folder Backup. In addition, the new built-in function of Restore Point helps you to create a system store point so you can recover your system to a previous state if you do not like the changes you have made. This ensures the safety of your system when you run the registry repair process. The Smart Evidence Cleaner Pro is database which records all activities on computer, like system configuration settings, user profiles, programs installation/uninstallation, documents creation, hardware/software operations and PC ports activation. Smart Evidence Cleaner Pro includes information for low-level operating system components. During operation, the registry is constantly referred, while it will be invalid when operation is ended. Above all, Smart Evidence Cleaner Pro plays an important role in optimizing Windows. Once it becomes cluttered or damaged, computer performance will be sluggish, instable or even fail down.

Common Pc Problems, Reasons And Solutions
Free Vs Corporate Messenger
The History Of Midi Electronic Home Studio Recording
Starting Your First Online Business Without A Website
Intel Maintains Upward Forecast, Sets Upbeat Momentum

1 条评论:

  1. Nice and very helpful information i have got from your post. Even your whole blog is full of interesting information which is the great sign of a great blogger.

    Lenovo - 14" ThinkPad Notebook - 4 GB Memory - 320 GB Hard Drive - Black

    Lenovo - Refurbished - 15.6" ThinkPad Edge Notebook - 4 GB Memory - 500 GB Hard Drive

    回复删除