Broken fonts for Gtk based applications

Bug #1166125 reported by Václav Haisman on 2013-04-08
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
GTK+
Unknown
Medium
Pango
Unknown
Medium
gtk+2.0 (Ubuntu)
Medium
Unassigned
gtk+3.0 (Ubuntu)
Medium
Unassigned
pango-graphite (Ubuntu)
Medium
Unassigned

Bug Description

After upgrade from 12.10 to 13.04 beta of Ubuntu (Xubuntu), I am experiencing some issues. Like without me actually changing anything, my fonts are broken for some applications (most of them) and not for other (rxvt).

See this http://i.imgur.com/ubVvr53.png

As you can see, rxvt there is the only application with normal fonts. The Terminal application from Xfce suite is for some inexplicable reason using some kind of proportional font. See that the font in the Terminal Preferences is set to Liberation Mono. Also, please notice how in the Choose Terminal Font dialog the Courier New font Preview is not Courier New.

Václav Haisman (vzeman79) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1166125/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Václav Haisman (vzeman79) wrote :

It is impossible for me to fill this against any concrete package as it seems that (nearly) all fonts functionality is broken. The issue is not recognizably localized.

tags: removed: bot-comment
Václav Haisman (vzeman79) wrote :

It appears that this issue plagues all Gtk based applications.

summary: - Ubuntu (Xubuntu) 13.04 beta, broken fonts for some applications
+ Ubuntu (Xubuntu) 13.04 beta, broken fonts for Gtk based applications
affects: ubuntu → gtk+3.0 (Ubuntu)

When I try to open some PDF documents using Evince, I can see this on console:

(evince:10348): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Linux Libertine G Italic 10.798828125'

(evince:10348): Pango-WARNING **: font_face status is: <unknown error status>

(evince:10348): Pango-WARNING **: scaled_font status is: out of memory

** (evince:10348): WARNING **: Exception in gr::RangeSegment for PangoLogAttrs

** (evince:10348): WARNING **: Exception in gr::RangeSegment

(evince:10348): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Linux Libertine G Italic 9.75'

(evince:10348): Pango-WARNING **: font_face status is: <unknown error status>

(evince:10348): Pango-WARNING **: scaled_font status is: out of memory

** (evince:10348): WARNING **: Exception in gr::RangeSegment for PangoLogAttrs

** (evince:10348): WARNING **: Exception in gr::RangeSegment

Launchpad Janitor (janitor) wrote :

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

Changed in gtk+2.0 (Ubuntu):
status: New → Confirmed
Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
Vitali Chaplenko (norkolt) wrote :

Try removing pango-graphite it seems broken in 13.04

Launchpad Janitor (janitor) wrote :

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

Václav Haisman (vzeman79) wrote :

Removing package pango-graphite has solved the problem, it seems.

Changed in pango-graphite (Ubuntu):
status: New → Confirmed
affects: pango → pango-graphite (Ubuntu)
Launchpad Janitor (janitor) wrote :

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

Changed in pango-graphite (Ubuntu):
status: New → Confirmed
Raül Cambeiro (raulcambeiro) wrote :

The suggestion in comment #10 works for me. Getting rid of pango-graphite fixes it.

Thanks Václav! This has been keeping me busy for a few hours.

I've just upgraded from 12.10 to 13.04. The problem also affected fonts in lightdm greeter and gnome, but fontconfig seemed ok and the fonts in tty1-6 were also ok.

Karolis (reklamukibiras) wrote :

I don't know about fonts - it seems fine to me, but I have rather more serious bug than fonts:
gtk application are not running at all! I didn't change anything since upgrade (and a while before), I use gthumb and evince quite frequently I never had any problems, but since upgrade both programs are not running at all, they don't show up any temporary/permanently-hanged windows - nothing. running in terminal shows this:

(gthumb:25574): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/breakpoint trap

(evince:25547): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/breakpoint trap

identical errors with echo $? = 133

-----------------------

And while writting this post - I found the sollution:
sudo apt-get install --reinstall libglib2.0-0
and both programs run (thank me, google, luck & the force :])

Scott Adams (scottadams80) wrote :

Took me forever to try and figure out why my fonts looked so bad in eclipse on kubuntu 13.04.

sudo apt-get remove pango-graphite

And now everything looks good again.

Thanks Vitali!

Rockwalrus (rockwalrus) wrote :

This is definitely a serious bug with pango-graphite in this release.

Václav Haisman (vzeman79) wrote :

Is this still relevant with 13.10?

Václav Haisman (vzeman79) wrote :

Answering myself after testing it: Yes, it is still broken.

tags: added: 13.10
tags: added: saucy
removed: 13.10
tags: added: ui
tags: added: raring
Changed in pango:
importance: Undecided → Unknown
status: New → Unknown
Changed in pango:
importance: Unknown → Medium
status: Unknown → New

Since the affected package is "pango-graphite", it isn't "gtk".

Changed in gtk+3.0 (Ubuntu):
importance: Undecided → Medium
Changed in gtk+2.0 (Ubuntu):
status: Confirmed → Triaged
Changed in gtk+3.0 (Ubuntu):
status: Confirmed → Triaged
Changed in gtk+2.0 (Ubuntu):
importance: Undecided → Medium
Changed in pango-graphite (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in gtk+2.0 (Ubuntu):
status: Triaged → Invalid
Changed in gtk+3.0 (Ubuntu):
status: Triaged → Invalid
summary: - Ubuntu (Xubuntu) 13.04 beta, broken fonts for Gtk based applications
+ Broken fonts for Gtk based applications
Václav Haisman (vzeman79) wrote :

I have created upstream bug report: https://sourceforge.net/p/silgraphite/bugs/57/

Changed in gtk:
importance: Undecided → Unknown
status: New → Unknown
Changed in gtk:
importance: Unknown → Medium
Changed in pango:
status: New → Unknown
mhosken (martin-hosken) wrote :

pango-graphite and its dependent libgraphite3 should be removed from any dependencies and from the repos. The replacement (libgraphite2-3, yeh I know it's a funny order) integrates with harfbuzz-ng. I'm assuming that pango uses harfbuzz rather than its own shaping modules now?

I don't know the procedure to withdraw a package from the repos from a particular release but I would suggest withdrawing pango-graphite and libgraphite3 from raring, saucy and subsequent releases.

This package was somehow auto-installed in a release upgrade today from 14.04 to 14.10, and cost me most of the day trying to figure out why everything in X was glitchy and crashing. The terminal looked like
http://askubuntu.com/questions/285836/letter-spacing-in-gnome-terminal

Even xterm would crash on ctrl-right-click, and these badly-spaced strange characters appeared in almost every terminal emulator (xterm worked, except for its menus). Font selection dialogs ground the computer to a halt, and even the window manager titlebars were in a wonky font. Yet, something was showing, so it was a lot of work to investigate the entire stack of X11, Xft, fontconfig, freetype, pango, gtk, etc to find what component was bad.

sudo apt-get purge pango-graphite

solved the problem. No idea how that package got installed, but it's removal fixed everything immediately. There is a serious problem with this package in the 14.10 release of ubuntu as well.

Given that this package breaks the entire desktop in a non-obvious way, the priority should be "high". I'm a software developer and have used linux as my daily OS since 1993 and it took me several hours to figure out what was going wrong.

What are novice users going to do, other than install another OS, if this bug strikes them? This bug makes all of X totally unusable.

tags: added: utopic
tags: added: trusty
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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