Semi-random ugly font rendering in Edgy (no font hinting)

Bug #63403 reported by Slight Slightly
80
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)
Undecided
Unassigned

Bug Description

I did an apt based upgrade from Dapper to edgy and now some fonts are rendering badly in some apps.

Specifically:

UI and content fonts in OpenOffice.org and Firefox.

Monospace in gnome-terminal.

I'm using sub-pixel smoothing.

Revision history for this message
Slight Slightly (slight--deactivatedaccount) wrote :

Attaching a screenshot demonstrating the issues.

Revision history for this message
Slight Slightly (slight--deactivatedaccount) wrote :

In the attached screenshot if you compare the monospace rendering in gnome-terminal with that in the font picker preview. Also compare the menu fonts for OO.o and FF with that of gnome-terminal.

Revision history for this message
rubinstein (rubinstein) wrote :

I can confirm this bug; coming from Bug #58511 where several people also have this issue.

Revision history for this message
rubinstein (rubinstein) wrote :

I think the right package is fontconfig.

Revision history for this message
cliffdover88 (cliffdownloads) wrote :

Same problem after update to edgy, problem with all Browsers, terminal and others apps

rubinstein (rubinstein)
Changed in fontconfig:
status: Unconfirmed → Confirmed
Revision history for this message
Xavier (chantry-xavier) wrote :

I can confirm the bug using medium hinting.
When using full hinting, all fonts are not blurred.
medium hinting : some fonts blurred, some not (like above screenshot)
slight hinting or no hinting : all fonts blurred

OpenOffice seems to do its own stuff with font rendering, and is not affected by Xft settings. This is really annoying me, I think a separate bug should be opened for it.

Revision history for this message
rubinstein (rubinstein) wrote :

There is already a bug about OOo:
Bug #54776 [Edgy] font hinting does not work with libfreetype6 v. 2.2.1

Revision history for this message
rubinstein (rubinstein) wrote :

I want to add that the content area of the Epiphany browser has also no hinting - this is probably caused by using the Firefox render engine.

Revision history for this message
Roshan Shariff (roshan.shariff) wrote : Re: [Bug 63403] Re: Semi-random ugly font rendering in Edgy (no font hinting)

> I want to add that the content area of the Epiphany browser has also no
> hinting - this is probably caused by using the Firefox render engine.

The same is true of Yelp, when the font is set to the default Sans.
Changing it to DejaVu Sans improves the look considerably.

Revision history for this message
Teemu Likonen (dtw) wrote : Re: Egly font rendering in Edgy – everywhere

I’m using Kubuntu Edgy and in my KDE desktop fonts look ugly everywhere. They are blurred and have become slightly smaller than they where in Dapper days. Attached is a shot taken from Konqueror’s window. Tabs in the top use DejaVu Sans 7 and text in the comment boxes use DejaVu Sans Mono.

(I said “everywhere” but actually I don’t mean bitmap fonts. They look just fine at least in my XTerm.)

Revision history for this message
Teemu Likonen (dtw) wrote :

I was hasty in my previous comment. It seems that when I select “Hinting style: Full” from KDE’s settings, I get same kind of sharp fonts than in Dapper—at least with KDE programs. With Dapper I always used “Hinting style: Medium”.

Revision history for this message
Xavier (chantry-xavier) wrote :

According to several users: http://ubuntuforums.org/showthread.php?t=244514
the medium hinting rendering of fontconfig has changed between dapper and edgy.
What is very weird is that the behavior is inconsistent depending on the app.
The only bug here is the inconsistency when using medium hinting, right?

Revision history for this message
Richard Nelson (wabz) wrote :

See the following close-up photos:
www.whatsbeef.net/wabz/screwedfonts.jpg

The firefox m is from the "Bookmarks" menu and looks very bad at a normal distance. The gedit m is from the "Documents" menu and looks crisp.

The following screenshot shows my font settings, a urxvt with -fn 7x13 and fonts looking crisp, and some other apps with bad font settings:
http://www.whatsbeef.net/wabz/fontscrew.png

Note that that screenshot looks fine on some monitors (you cannot see the problems), so the photos are probably more useful.

This did not occur in dapper.

Revision history for this message
Xavier (chantry-xavier) wrote :

The font settings you chose in gnome preferences, "subpixel smoothing" (subpixel + full hinting), aren't used by firefox which is apparently using "best shapes" (grayscale + medium hinting)
Gnome exports Xft resources (see output of: xrdb -q |grep Xft)
You should see rgba=rgb (subpixel), and hintstyle=hintfull (full hinting)

Now I'm not sure why firefox doesn't use that. Maybe you've conflicting fontconfig settings. Do you have a ~/.fonts.conf file?

Revision history for this message
Richard Nelson (wabz) wrote :

Yes, I did have a ~/.fonts.conf file. I don't remember ever creating it, and definitely didn't put it there myself while running Edgy (so it would have been there in Dapper, but I didn't have these problems there). I've removed it and fonts in konsole, firefox, kmail are all fine. Thank you. Apologies for filling this bug with bogus info!

Revision history for this message
Xavier (chantry-xavier) wrote :

Well, it's not your fault, the fact that you've different way to configure fontconfig is quite odd, and I don't know how it can handled correctly, and I don't know why all apps don't react the same way.
The ~/.fonts.conf was most likely created by kde.
Gnome only exports Xft resources. Kde does that too, but also write the ~/.fonts.conf file.
So I don't even know if it's a gnome, kde, or fontconfig bug :p

Revision history for this message
Xavier (chantry-xavier) wrote :

However, I believe that it's a different issue than the original one, maybe a different bug should be opened?
Because even when both ~/.fonts.conf and Xft resources specify medium hinting, the rendering is still different between firefox and gnome-terminal, and the rest.
Does anyone have an idea what firefox and gnome terminal have in common in the way they render fonts?
Since there aren't so many apps that behave this way, the problem could be in these 2 apps.

Revision history for this message
rubinstein (rubinstein) wrote :

Have a look at bug #60760 - turning off autohinting has no effect - maybe the new freetype and xft is the root of cause.

Revision history for this message
Emmanuel Touzery (emmanuel-touzery) wrote :

i also had a .fonts.conf and renaming it so it's not used for fonts helped for firefox... fonts are now much better in firefox. my .fonts.conf was from 2004-10-23... so in my case it's not from ubuntu. i've carried my home directory from other linux distros. the file was probably created by mandrake.

Revision history for this message
Xavier (chantry-xavier) wrote :

This is getting really confusing, that's why I was trying to sum it up.
I believe there are 4 different issues here:
1) Gnome terminal and firefox not rendering like other apps when medium hinting is used
2) OpenOffice not using fontconfig settings : bug 54776
3) Fontconfig settings conflict between ~/.fonts.conf and Xft resources which result in different font rendering in some apps (same as 1) ?)
4) bug 60760, which is a problem selecting between autohinting and native hinting. no one talked about this issue here, and no Xft resources is used for this option, so it isn't the same as 3)

Please only talk about 1) here, unless you are able to identify duplicates in the above 4 issues.
Maybe a bug should be opened for 3)

Revision history for this message
Matt Brubeck (mbrubeck) wrote :

Yes, (1) and (3) are definitely separate issues.

I am seeing different rendering in Firefox and gnome-terminal (1) even though I have never had a ~/.fonts.conf file (3).

Revision history for this message
writser (writser-gmail) wrote :

On my computer, (1) was fixed after removing font.conf (3). I had both Gnome & KDE installed before upgrading my distribution to Edgy. Perhaps this caused some problems? See:

http://home.fmf.nl/~writser/ubuntu/uglyterminal.png
http://home.fmf.nl/~writser/ubuntu/zoomedin.png

for the way fonts looked in the terminal before fixing (3).

Revision history for this message
writser (writser-gmail) wrote :

>When using full hinting, all fonts are not blurred.
>medium hinting : some fonts blurred (like gnome terminal), most not (like nautilus)
>slight hinting or no hinting : all fonts blurred

This is still true for me though. Strange behaviour.

Revision history for this message
Xavier (chantry-xavier) wrote :

This strange behaviour is issue (1), which I believe this bug report was about.
I believe you only had issue (3).
However, (1) and (3) could be different consequence of the same problem, since it seems like the same apps are affected (contents of gnome terminal).
That is:
gnome terminal looks blurry when medium hinting is used (1)
gnome terminal seems to look at ~/.fonts.conf in priority over Xft resources (3)

It seems to me there are much more apps that behave correctly than not. The apps that don't behave correctly are widely used though (gnome terminal, firefox and openoffice). I'm not sure this is a fontconfig problem, and not a problem in these apps.
It just was more obvious to establish openoffice was in fault, because it's much more broken than firefox or gnome terminal, so there is already a specific bug report for it.

Revision history for this message
Andrew Jorgensen (ajorg) wrote :

Sweet! deleting $HOME/.fonts.conf fixes it for gnome-terminal and gecko at least. Still it's a bug though, and it didn't exist in dapper.

Revision history for this message
sonicated (tc-sonicated) wrote :

I've got the same problem, a screenshot is at:

  http://sonicated.com/misc/edgy.jpg

Nautilus is in the background and Firefox is in the foreground. I thought deleting ~/.fonts.conf would fix the problem but that file wasn't there.

Has anyone got any suggestions of what I could try next?

Revision history for this message
Florian Hackenberger (f-hackenberger) wrote :

You could try to create a .fonts.conf file with the following content (that's what KDE would add if you select RGB hinting and full as the hinting style. This makes my fonts look nice again.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

Revision history for this message
Frank Siegert (fsiegert) wrote :

For everybody concerned about case (3) in comment 20: I filed bug #69091, and I think my issue is at least related to (3).

Revision history for this message
Miguel Ruiz (mruiz) wrote :

Hello:

I can confirm this bug. Yesterday I updated my laptop to Edgy.

One of the first things that I say when Gnome session starts: Fonts problems! (specially on gnome-terminal and Firefox).

I look for information about it and I discovered a solution: Go to System->Preferences->Fonts and select "Subpixel Smoothing". After that my problem was fixed.

Gnome must configure this value by default.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Another workaround for Firefox: enable Pango.

Create a ~/.mozilla/firefox/rc file and add the following line to it:
MOZ_DISABLE_PANGO=0

restart Firefox.

Revision history for this message
golfbuf (golfbuf) wrote :

I also experienced this after a clean install of kubuntu 6.10. The fuzzy fonts appeared in all apps and all fonts. The fix was to change the antialiase hinting from the default of "medium" to "full". Now firefox, and all kubuntu apps are ok for me.

Revision history for this message
Lionel Besson (lionel-besson) wrote :

I did exactly the same thing, with same results. That bug didn't appeared when i updated the kubuntu of one of my friend

Revision history for this message
Aldin K (aldin) wrote :

>Still it's a bug though, and it didn't exist in dapper.

u are right, i am confirming too, and adding that the same is in feisty fawn herd 5

Revision history for this message
Aldin K (aldin) wrote :

I've opened other thread for Feisty...

https://bugs.launchpad.net/ubuntu/+bug/93159

take look at the picture situation is same...

http://librarian.launchpad.net/6847989/badfonts.png

Revision history for this message
Cyr4x (marcinwlo) wrote :

I'm using 8px Tahoma font with no antialias (as in Windows XP), so in OO.org it looks ugly. Not only in interface, in documents too. I think it's an issue of openoffice-gnome package. The same problem was earlier in Cedega, but has been solved.

Revision history for this message
Michalxo (michalxo) wrote :

This bug is back in karmic with actual updates. Affected applications -> at least Firefox 3.6, vlc, in KDE konqueror and all firefox(es)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers