Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using fluxbox. I've noticed that the TTF fonts are quite blurry (particularly in GVim):

Here's an example, using Inconsolata 12pt in Fluxbox:

enter image description here

Here's the same example, using Inconsolata 12pt, except in Unity:

enter image description here

You can see that not only is the text easier to read in the Unity case, it's also larger. The font colors look faded in the fluxbox case as well. What I would like to ask is:

  1. How can I make the font under Fluxbox look the same as under Unity? It looks as if Fluxbox isn't getting the font sizes quite right and doing excessive antialiasing.
  2. Why are the fonts being rendered at different sizes? I thought 12pt should look the same in every environment (on the same hardware).

I'm using an LCD, so my font settings under gnome-tweak-tool are:

  • Hinting: slight
  • Antialiasing: RGBA

Here are my DPI settings (same under Fluxbox and Unity):

misha@misha-lmd:~$ xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    1280x1024 pixels (382x302 millimeters)
  resolution:    85x86 dots per inch

EDIT

Problem solved after editing .Xresources. Before:

enter image description here

After:

enter image description here

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

This looks like a different handling of font hinting/aliasing from Fluxbox vs. GNOME/Unity.

Warning: The following is for experiences users only!

According to the Fluxbox Wiki (untested as we do not run Fluxbox here) we can define font settings by creating a ~/.Xresources file in our HOME where font rendering can be defined with the following entries (amongst many others):

[...]
 Xft.antialias:                 true
 Xft.hinting:                   true
 Xft.hintstyle:                 hintfull
 Xft.rgba:                      rgb
[...]

To take effect we run

xrdb ~/.Xresources

Disclaimer: we have no own experience whether an additinoal .Xresources file also affects our GNOME/Unity XServer settings. Therefore do apply these settings with care. Update any pre-existing settings before you change anything as wrong X-server settings may render your X-display unusuable.

share|improve this answer
    
The Unity fonts still look larger by 1pt size for some reason, but the blurriness is gone. It looks much better now. Thank you! –  misha Nov 2 '12 at 8:34
add comment

It seems that gnome terminal (I suposse thats what you're using) has some font configuration in preferences that adds shades, because thats the only difference I can tell from the pictures.

share|improve this answer
    
Those are GUI apps. I'm not using a terminal. –  misha Nov 2 '12 at 7:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.