No sub-pixel font rendering in Gnome3 or Cinnamon

Archived topics about LMDE 1 and LMDE 2
Locked
neon_overload

No sub-pixel font rendering in Gnome3 or Cinnamon

Post by neon_overload »

Hello,

Using Cinnamon's font settings, the "RGB" font smoothing option has no effect. Fonts appear identical to when "Grayscale" is chosen. Upon close inspection, Cinnamon isn't doing any sub-pixel rendering throughout its interface.

I have tried this both in Virtualbox on my work PC under its virtual graphics driver (with an ATI integrated driver on the host), and on my home PC with the Nvidia proprietary driver. Both exhibit the same behaviour.

Switching to "None" (ie, the option where font smoothing is turned off) works correctly and disables font smoothing (looking horrible in most cases). But the other two options both appear to be doing grayscale font smoothing and there's no difference between them.

Haven't tried testing this on the main (ubuntu) edition or looking into what's causing it, sorry.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
neon_overload

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by neon_overload »

After lots of testing I can report

- Problem does not occur in a recent Debian Testing (wheezy)
- Problem does not occur in Mint 12 Lisa

- Problem occurs in both Gnome 3/gnome-shell and Gnome 3/Cinnamon
- Problem occurs using either Cinnamon settings or gnome-tweak-tool

Description: No sub-pixel font rendering. Both gnome-tweak-tool and Cinnamon settings have a "None, Grayscale, RGBA" setting. The RGBA setting has no effect in LMDE (text is grayscale smoothed) but works in Debian Testing and Mint 12 Lisa (text is subpixel smoothed).
non-portable

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by non-portable »

That's a good lot of digging. I got as far as - the fonts look worse in my feedback on this update pack.

I can't see anything in the changelog for libfreetype6 between lmde's (2.4.8-1) and debian testing's (2.4.9-1) that would explain this (just loads of security fixes), so I guess it's not as low as libfreetype. I should probably install libfreetype6 2.4.9-1 from debian testing to check that. I'm not sure how the stack interacts in gnome to render text.
neon_overload

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by neon_overload »

Completely forgot to mention: sub-pixel rendering works fine in MATE. It's only gnome 3 (gnome-shell/cinnamon) where it doesn't work.

Noticed a fair few differences between Debian testing and LMDE's /etc/fonts/conf.d. However, I have no idea if it's related. All the settings in there look sensible to me. Thinking it's something in gnome 3's confs.
neon_overload

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by neon_overload »

Workaround found!

Note: workaround has side-effects.

Enable the 10-sub-pixel-rgb.conf in /etc/fonts/conf.d by simlinking it into that folder from /etc/fonts/conf.avail

Change takes effect immediately (well, after a 1 second delay) - there doesn't seem to be a need to be a need to restart any services.

The side-effect is that now, sub-pixel rendering enabled regardless of the "Grayscale" and "RGBA" settings of gnome-tweak-tool and Cinnamon's settings: setting it to grayscale does not make it grayscale but keeps the sub-pixel. So it's the opposite problem to before, but in my case a better problem. Fonts are now looking beautiful on gnome3/cinnamon!

What is the best way to pass this sort of feedback on to the mint team?
Last edited by neon_overload on Thu Apr 19, 2012 10:41 pm, edited 1 time in total.
non-portable

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by non-portable »

Nice work around. I was just writing a post about ~/.fonts.conf - same settings - different location.

My ~/.fonts.conf has

Code: Select all

<match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
When it should say

Code: Select all

 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgba</const>
  </edit>
 </match>
I think, as per 10-sub-pixel-rgb.conf

I don't know what gnome tweak tool is doing.

Thanks for the workaround. That's great.
non-portable

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by non-portable »

Somehow I now have working Gnome tweak tool config.

This was after setting that 2nd bit of code in .fonts.conf above (which was actually syntactically incorrect).
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by Monsta »

non-portable wrote:My ~/.fonts.conf has

Code: Select all

<match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
When it should say

Code: Select all

 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgba</const>
  </edit>
 </match>
Hmm... what exactly should change if I only apply these changes and won't mess with 10-sub-pixel-rgb.conf? :?
neon_overload

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by neon_overload »

The main difference is /etc/fonts/conf.d is system-wide, whereas ~/.fonts.conf only applies to that user.

I presume (though I haven't tried with a .fonts.conf) that they both have the same caveat - that it still doesn't make cinnamon settings or gnome-tweak-tool's setting have any effect.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by Monsta »

Ok, I quickly found the answer to my question: next time you run a program with GUI from the terminal, it will show:

Code: Select all

Fontconfig warning: "~/.fonts.conf", line 6: invalid constant used : rgba
:D
non-portable

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by non-portable »

Yeah, that's how I found out I'd added a syntax error. It might have been useful ?!? Apparently Gnome Tweak Tool doesn't act on that file, so maybe it just gets in the way. Anyway now when I flip between different types I see a difference. Without the system wide setting.

Firefox is an odd man out.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by Monsta »

BTW, the system installed from 201204 RC ISO doesn't even have ~/.fonts.conf - everything is set up globally in /etc/fonts directory... go figure :)
non-portable

Re: No sub-pixel font rendering in Gnome3 or Cinnamon

Post by non-portable »

Safe to delete then :)
Locked

Return to “LMDE Archive”