Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2309  / 3 Years ago, fri, june 11, 2021, 8:08:33

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


More From » fonts

 Answers
7

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.


[#34535] Saturday, June 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;