Sans serif cyrillic font in kubuntu 12.04 is bad

Bug #990635 reported by Kyrylo Bohdanenko
136
This bug affects 35 people
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)
Fix Released
Undecided
Unassigned
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

1) 'lsb_release -rd':
Description: Ubuntu 12.04 LTS
Release: 12.04

2) Software version - default for kubuntu 12.04 on 28.04.2012 (no additional repositories)

3) Description:
Default font alias for 'Sans Serif' (cyrillic) looks horrible in kubuntu 12.04. This font appear in KDM and when running programs with root access level (e.g. 'kdesudo kate').

AFAIK the default alias for 'Sans Serif' font family is 'Dejavu Sans'. But in kubuntu 12.04 this setting got broken somehow.
So now 'Sans Serif' (also 'Serif' and 'Monospace') have wrong aliases (I think it is 'Nimbus L' font family).

See the attached screenshot for details (this is what shows up when running 'kdesudo kate').

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :
affects: ubuntu → kdebase (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kdebase (Ubuntu):
status: New → Confirmed
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Workaround: copy ".fontconfig" folder from your home directory to /root folder.

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

It seems the workaround isn't going to work - sudo in ubuntu is configured to keep '$HOME'.
I think something must be done with /etc/fonts

Revision history for this message
Paul Sladen (sladen) wrote :

NeuroMancer: could you please

  (1) attach your '~/.fontconfig' file that you believe is working
  (2) confirm that if you move it out of the way, the fonts appear differently.
  (3) take a screenshot of before, and after
  (4) highlight (eg. red circle/red arrow) which character combinations look particularly bad

Changed in kdebase (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Stanislav Sidorenko (ssidorenko) wrote :

Looks like Naum-Gothic font is used by default.
Removing 'fonts-nanum' package solved the issue for me. Kirill, please try that.

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

sentaus, thanks that's a good workaround.

It proves that it is something wrong with aliases in /etc/fonts

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Paul, I check my workaround again, and now I see - it's help probably for only launch application under root or so.

So please look into sentaus workaround.

Changed in kdebase (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

> It proves that it is something wrong with aliases in /etc/fonts
What the right package then? I think it's not kdebase bug, because bug appear even in Ubuntu bug 945461 and Xubuntu.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Adding (again) qt4-x11 because this bug affects not only KDE apps, but also all Qt apps run as root (confirmed with Skype).

This post may contain some information on what it's caused by: http://alp-notes.blogspot.com/2012/04/qt-fonts-in-ubuntu-1204.html.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qt4-x11 (Ubuntu):
status: New → Confirmed
tags: added: regression-release
Revision history for this message
Paul Sladen (sladen) wrote :

Please could I ask everyone to attach their '~/.fontconfig' as listed in comment #6. We need this information, and the answers to the other 3 questions in comment #6 in order to debug this.

Revision history for this message
Julius Schwartzenberg (jschwart) wrote :

julius@wijsvinger:~$ file .fontconfig/
.fontconfig/: directory

Should I tar the whole directory and attach it?

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

1. See attachment
2. I haven't clearly understood what I should move out of the way, but when I remove ~/.fonts.conf and ~/.fontconfig fonts remain the same. Nevertheless when I remove 'fonts-nanum' package - everything goes back to normal (see attachment in next post).
3. Attachment in next post
4. The whole set of letters looks bad: letters are too light and wide, letters 'З', 'з' and 'д' are not lined up with others, underlines are too far, etc. I think you should compare the screenshot from the next post to that one, attached to bug report.

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

And here is the screeshot of sans-serif fonts after workaround (i.e. removing 'fonts-nanum' package).

Actually that's how they should look like.

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

Please note that not only 'sans-serif' is affected, also 'serif' is looking bad (e.g. huge kerning). See attachment.

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

I've made an ivestigation. The attached patch for '/etc/fonts' seems to fix the problem .

BUT I haven't tested the korean localization with it.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "This patch fixes bad cyrillic 'sans-serif' and 'serif' BUT is not tested with korean localization" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote : Re: Sans serif cyrrilic font in kubuntu 12.04 is bad

As long as 'sans-serif' in normal in Gnome/Unity and the patch, changing language detection criteria, fixes the problem I can assume that the problem is that Qt's(KDE's) "lang" passed to font configuration xml's differs from one in GTK (Unity/Gnome).

I mean it turns out in /etc/fonts/conf.d/90-fonts-nanum.conf here:

<test qual="any" name="lang" compare="contains">
      <string>ko</string>
</test>

that "lang" for cyrillic(russian) contains substring "ko". So I think that the contens of "lang" in worth debugging.

Revision history for this message
Михаил (mr-mike) wrote :

There is a bug in Qt applications on ubuntu-like distributions. Decided to remove "fonts-nanum". Thanks!

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote : Re: Sans serif cyrrilic font in kubuntu 12.04 and 12.10 is bad

Still issue in Kubuntu 12.10.

summary: - Sans serif cyrrilic font in kubuntu 12.04 is bad
+ Sans serif cyrrilic font in kubuntu 12.04 and 12.10 is bad
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fonts-nanum (Ubuntu):
status: New → Confirmed
Changed in hundredpapercuts:
status: New → Confirmed
milestone: none → quantal-12-kubuntu
importance: Undecided → Medium
Revision history for this message
Julius Schwartzenberg (jschwart) wrote :

I looked at /etc/fonts/conf.d/90-fonts-nanum.conf in Debian Wheezy, which seems to have the same lines, but it does not have this problem.

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Still issue in Kubuntu 12.10 Alpha 3.

Revision history for this message
Kyrylo Bohdanenko (kyrboh) wrote :

Looks like it's no longer an issue in Kubuntu 12.10 Beta 1.

Can anyone confirm?

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

Confirm, seems like fixed in Beta 1, but probably 12.04 require backport some commits or packages to get it fixed.

summary: - Sans serif cyrrilic font in kubuntu 12.04 and 12.10 is bad
+ Sans serif cyrillic font in kubuntu 12.04 and 12.10 is bad
Revision history for this message
Julius Schwartzenberg (jschwart) wrote : Re: Sans serif cyrillic font in kubuntu 12.04 and 12.10 is bad

Anybody any idea what was changed in 12.10?
What happens on Kubuntu 12.04 together with Kubuntu-backports?

Revision history for this message
Julius Schwartzenberg (jschwart) wrote :

Kubuntu-backports doesn't solve the problem for 12.04.

summary: - Sans serif cyrillic font in kubuntu 12.04 and 12.10 is bad
+ Sans serif cyrillic font in kubuntu 12.04 is bad
Revision history for this message
Julius Schwartzenberg (jschwart) wrote :

When I install the fontconfig packages from 12.10 on 12.04, the problem seems to disappear here:
fontconfig
fontconfig-config
libfontconfig1
libfontconfig1

Maybe these could be provided in backports if an expert on fontconfig can verify it doesn't create any new problems?

affects: kdebase (Ubuntu) → fontconfig (Ubuntu)
Revision history for this message
Julius Schwartzenberg (jschwart) wrote :

This appears to be fixed in Ubuntu 12.04.3 as far as I can see, maybe someone can confirm?

Revision history for this message
Alexander Strekalov (iakrevetko) wrote :

I can confirm that this was fixed in 12.04.3. On freshly installed system fonts in Skype rendered correctly.

Revision history for this message
Changwoo Ryu (cwryu) wrote :

This is not a bug from font package. Thanks.

Changed in fonts-nanum (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

This is not reproducible in 14.04 (maybe earlier) as far I remember.

no longer affects: hundredpapercuts
no longer affects: fonts-nanum (Ubuntu)
Changed in fontconfig (Ubuntu):
status: Confirmed → Fix Released
Changed in qt4-x11 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.