How to set the Windows Fonts in Linux

De WikiMar
Dreceres ràpides: navegació, cerca

Windows has the fonts size in dpi fixed to 96. This means by higher resolutions fonts get smaller, but the advantage is that each character is always represented with the same amount of pixels.

To know the dpi set in a Linux system:

xdpyinfo
xdpyinfo |grep dimensions
xdpyinfo |grep resolution

They should be 96x96

Edit /etc/X11/xorg.conf

Section "Monitor"
 Itentifier "Configured Monitor"
 Option "DPMS"
 Option "NoDDC"
 DisplaySize 381 238   #in case of having 1440x900 pixels
Section "Device"
 Option "UseEdidDpi" "FALSE"   #for the Nvidia cards
 Option "DPI" "96x96"
 Identifier "VideoCard0"
 Option "NoLogo"  #not to show the Nvidia logo 
 Driver "nvidia"

...


No avoid that titles of windows disappear with Compiz we should also add:

 Option "RenderAccel"   "yes"
 Option "XAANoOffscreenPixmaps"   "true"
 Option "AddARGBGLXVisuals" "True"
 Option "AllowGLXWithComposite"   "true"
 Option "TripleBuffer"   "true"
 Option "RenderAccel" "true"   #for more speed
 Option "BackStoring" "true"   #for more speed


EndSection
Section "Extensions"
 Option   "Composite"   "Enable"   #for more speed
 Option "RENDER" "Enable"   #for more speed
EndSection


Now the following should be 96x96

xdpyinfo |grep resolution


In system configuration we have to choose the following fonts:

Tabuchet 9
 (Force: 96dpi on)
 No Antialiasing: 0pt-12pt
GTK Styles & Fonts -> Use Tahoma 9

The fonts in Firefox:

Proporcional: Serif 16
Serif: Times New Roman
Sans-serif: Arial
Fixed-size: Courier New 13
Default font: Times New Roman 16