Pango-WARNING **: shaping failure, expect ugly output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pango1.0 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Exactly as reported in https:/
The problem from that post:
Console:
$ evince
(evince:8959): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu 11'
(evince:8959): Pango-WARNING **: font_face status is: out of memory
(evince:8959): Pango-WARNING **: scaled_font status is: out of memory
(evince:8959): Pango-WARNING **: shaping failure, expect ugly output. shape-engine=
As for mine, it is basically the same:
(process:13924): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is '微软雅黑 9'
(process:13924): Pango-WARNING **: font_face status is: file not found
(process:13924): Pango-WARNING **: scaled_font status is: file not found
(process:13924): Pango-WARNING **: shaping failure, expect ugly output. shape-engine=
As the result,
For the original reported, "some font and only displays squares in menus, text is displayed okay,", but for me, everything are displays as squares in menus, including English texts.
However, my rxvt-unicode, which uses the 微软雅黑 font, display correctly without any problem.
The cause of the problem, is also exactly as described in the original post:
It happens because of symlinks from /usr/share/fonts to a different partition. For the original reporter, some fonts are symlinked, and for me 微软雅黑 is symlinked to a different partition. Thus his is missing some text, while I'm missing everything.
symlinking fonts to a different partition is quite harmless in my view, and Pango should not treat them any differently.
This only happens since Ubuntu 16.04. In Ubuntu 15.10, it was OK.
My current Pango related packages that exhibit such problem:
gir1.2-
libcogl-
libpango-
libpango-
libpango1.
libpangocairo-
libpangoft2-
libpangomm-
libpangox-
libpangoxft-
Please look into it. Thx.
To duplicate the problem:
1. Find the first match of the font used for Pango menu:
$ fc-match -s sans-serif | head -1
msyh.ttc: "微软雅黑" "Regular"
2. Copy & symlink that file into a different partition
3. Reboot! That's important, otherwise, I didn't see the problem or fix the problem.
4. Start evince or any gtk/Pango based application from console.