You are not logged in.

#1 2012-06-15 14:59:01

LostSalad
Member
Registered: 2012-06-14
Posts: 5

[SOLVED] Corrupted fonts - possibly Nouveau?

Hello everyone.

This is my second time running an Arch setup, so the installation went pretty smoothly this time. It's good to be back smile

Anyways, I'm having some trouble setting up my fonts nicely. I followed the Font Configuration guide in the wiki, and decided to go with the Infinality patched setup. The Infinality rendering is just awesome and everything is as crisp as I want it. The only problem is that some UI elements get their font corrupted. To explain what I mean, things end up looking like this:

degenerating

This is despite most fonts being normal as hell. It only seems to happen as controls are updating (terminal refresh, spinning icon in tab for page load, menu scrubbing). The following 2 screens show a web page rendering (which always seems to be 100% fine), and 2 terminals, the one of which is updating:

web_clear
terminal

I've seen that most issues seem to be caused by sub-pixel rendering and choosing the wrong configuration (RGB, BGR, VRGB etc). I've selected all of them by linking them into

/etc/fonts/conf.d

, but even completely disabling hinting and sub-pixel rendering doesn't fix the problem.

To confirm that the issue is not because of the Infinality patch, I reverted to the basic unmodified fontconfig. It didn't help, the issue persisted. This makes me think that it might be Nouveau, because I don't remembering it happening during my brief stint with the proprietary Nvidia driver. I'm not reverting to Nvidia because it does not support a framebuffer at a resolution that is useful for my screen.

Basically, based on the images above, does anyone recognize what might be wrong? I am not sure how to go about debugging this further. Any help will be appreciated.

EDIT: just a bit more information. This is quite sporadic. It does not happen consistently and I haven't found much correlation to what makes it worse. However, once it starts, it gets worse and worse, which makes me think it's some sort of caching issue? Maybe? Meh?
EDIT EDIT: you can see in the terminal screenshot that I tried upating Cairo. It didn't help either.

Last edited by LostSalad (2012-06-15 20:04:05)

Offline

#2 2012-06-15 15:46:47

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

It might be that nouveau isn't a good choice for your setup. Have you tried using the default vesa / uvesa driver in the Linux console? It has its limitations but you should be able to set the fb resolution so it matches the specs of your monitor (at least when using grub2 and tweaking gfxpayload values).

Last edited by bohoomil (2012-06-15 15:48:21)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-06-15 17:36:46

LostSalad
Member
Registered: 2012-06-14
Posts: 5

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

bohoomil wrote:

It might be that nouveau isn't a good choice for your setup. Have you tried using the default vesa / uvesa driver in the Linux console? It has its limitations but you should be able to set the fb resolution so it matches the specs of your monitor (at least when using grub2 and tweaking gfxpayload values).

Is it possible to use vesa in the console independent of whatever driver you use for X? I was under the impression that you choose one driver and that's the end of it, but I may have misunderstood the whole process.

Offline

#4 2012-06-15 17:52:13

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

I'm not sure why there's talk about the console here when this is an X issue. To be exact, it's interaction between the nouveau driver and cairo-1.12. You haven't provided which version of stuff you're using, but I'm assuming you're not using [testing]. I think, though I'm not sure, the xf86-video-nouveau version that entered [testing] today fixes it.

Offline

#5 2012-06-15 17:57:38

LostSalad
Member
Registered: 2012-06-14
Posts: 5

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

Gusar wrote:

I'm not sure why there's talk about the console here when this is an X issue. To be exact, it's interaction between the nouveau driver and cairo-1.12. You haven't provided which version of stuff you're using, but I'm assuming you're not using [testing]. I think, though I'm not sure, the xf86-video-nouveau version that entered [testing] today fixes it.

The Nvidia driver messes up the framebuffer resolution, so I don't want to use it. Pretty noob question - but how do I check what version of cairo I'm using? I cannot remember if I ended up using cairo-git or not.

EDIT: No, I was not using [testing]. I just enabled [testing] and upgraded xf86-video-nouveau and the problem still persists sad

EDIT EDIT: not sure if this is how to do it but:

[root@salad-arch salad]# pacman -Qs cairo
local/cairo-git 20120612-1
    Cairo vector graphics library (git version)

Last edited by LostSalad (2012-06-15 18:04:08)

Offline

#6 2012-06-15 18:13:01

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

Let me clear things up a tiny bit: I mentioned using vesa in the console so that you could get back to nvidia proprietary driver in X. The latter one doesn't mess up the fb resolution because it doesn't work there at all, so you're left with the defaults -- in this case it should be vesa. I also mentioned grub2 because this is the exact setup I've been using: gfx lets me use fb at 1680x1050 without any additional driver. You can of course experiment with nouveau, but when the proprietary driver works well in X, you may want to try tweaking the console part as advised and see if the results are satisfactory for you.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2012-06-15 18:24:29

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

Yeah, if you use the nvidia driver for X, you need to use vesafb/uvesafb for the console, and those are limited to resolutions in the vbios of your card, which may not include the resolution you want.

And a bit of a rant: Why do so many Archers use weird cairo versions instead of the official Arch packages? You're messing with a core library, without even knowing how to check for package versions? Now I'm not saying the official package will for sure work, still.

Offline

#8 2012-06-15 19:09:43

LostSalad
Member
Registered: 2012-06-14
Posts: 5

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

bohoomil wrote:

Let me clear things up a tiny bit: I mentioned using vesa in the console so that you could get back to nvidia proprietary driver in X. The latter one doesn't mess up the fb resolution because it doesn't work there at all, so you're left with the defaults -- in this case it should be vesa. I also mentioned grub2 because this is the exact setup I've been using: gfx lets me use fb at 1680x1050 without any additional driver. You can of course experiment with nouveau, but when the proprietary driver works well in X, you may want to try tweaking the console part as advised and see if the results are satisfactory for you.

Ah. I have two monitors, the primary being 1920x1080 and the other 1600x900. Neither resolution is supported which is a bit of a bummer.  I'll check out uvesafb and see what it can do.

Gusar wrote:

Why do so many Archers use weird cairo versions instead of the official Arch packages? You're messing with a core library, without even knowing how to check for package versions? Now I'm not saying the official package will for sure work, still.

When searching for possible solutions, someone mentioned a cairo incompatibility. I thought to try a newer version and see if that helps at all. It's not for any specific reason other than just seeing if it does anything useful and doesn't break anything in the process.

EDIT: (I really should think things through better before posting)

When looking at the screenshots, does the nature of the graphical glitch suggest anything in specific? I thought I'd also mention that sometimes characters get replaced by other characters.

Last edited by LostSalad (2012-06-15 19:12:12)

Offline

#9 2012-06-15 19:17:51

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

LostSalad wrote:

does the nature of the graphical glitch suggest anything in specific?

Yes, cairo. All drivers as well as X itself got fixes for it, that's why I was quire sure the latest nouveau package would fix it. What you can do is downgrade cairo to 1.10, that will for sure fix it.

Offline

#10 2012-06-15 20:02:28

LostSalad
Member
Registered: 2012-06-14
Posts: 5

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

I did a full system upgrade and downgraded cairo. My cairo is now on 1.10.2-3 with the Nouveau driver. It seems good so far. I'm hoping it holds out, but it does seem to be fixed, like you said.

Thanks a lot Gusar smile

Offline

#11 2012-06-20 08:34:01

sardaukar
Member
From: Netherlands
Registered: 2011-01-05
Posts: 32
Website

Re: [SOLVED] Corrupted fonts - possibly Nouveau?

Thanks for the tip, it was driving me mad big_smile

Offline

Board footer

Powered by FluxBB