Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712374 - x11-libs/pango font issues
Summary: x11-libs/pango font issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://www.reddit.com/r/Gentoo/comme...
Whiteboard:
Keywords:
Depends on: 717380
Blocks:
  Show dependency tree
 
Reported: 2020-03-13 13:53 UTC by Othremgliz
Modified: 2021-11-01 20:41 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_--info.txt,6.38 KB, text/plain)
2020-03-13 13:53 UTC, Othremgliz
Details
eselect fontconfig list (eselect_fontconfig_list.txt,1.43 KB, text/plain)
2020-03-13 13:54 UTC, Othremgliz
Details
cat /var/lib/portage/world | grep -i font (world.txt,238 bytes, text/plain)
2020-03-13 13:56 UTC, Othremgliz
Details
fc-list (fc-list.txt,249.21 KB, text/plain)
2020-03-13 13:57 UTC, Othremgliz
Details
dconf dump / (dconf.ini,1.62 KB, text/plain)
2020-03-13 14:03 UTC, Othremgliz
Details
emerge -pve pango fontconfig noto-emoji hack (tree.txt,31.46 KB, text/plain)
2020-03-13 14:22 UTC, Othremgliz
Details
what I see - case A (what-I-see.png,2.72 KB, image/png)
2020-03-14 22:27 UTC, Othremgliz
Details
what I see - case B (what-I-see-noto-emoji.png,8.25 KB, image/png)
2020-03-14 22:28 UTC, Othremgliz
Details
what others see (without substring "y3110w pop3") in case B (correct-noto-emoji.png,12.38 KB, image/png)
2020-03-14 22:31 UTC, Othremgliz
Details
FC_DEBUG=1 pango-view in case A (A__fc_debug_1.txt,11.26 KB, text/plain)
2020-03-14 22:43 UTC, Othremgliz
Details
FC_DEBUG=1 pango-view in case B (B__fc_debug_1.txt,15.43 KB, text/plain)
2020-03-14 22:44 UTC, Othremgliz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Othremgliz 2020-03-13 13:53:20 UTC
Created attachment 618464 [details]
emerge --info

I could not find another person who could confirm this bug.
It is system-wide issue with x11-libs/pango that affects swaywm, gnome-terminal and possibly other software using pango. pango-view behaviour is identical to those.

I tried different fonts, like media-fonts/hack, and I have two hypotheses:

A) Fallback is not working correctly in pango, and somehow in alacritty it works (it shows glyph looking a lot like crying face), but gnome-terminal, sway title bar etc shows empty space.

How to reproduce:
1. pango-view --text="2137 (😥) y3110w pop3" --output=pango.png --no-display
2. xdg-open pango.png

what I see: https://pasteboard.co/IYUciLfs.png

B) Noto emoji fonts do not work at all.

How to reproduce:
1. pango-view --text="2137 (😥) y3110w pop3" --font='Noto Color Emoji 50' --output=pango.png --no-display
2. xdg-open pango.png

what I see: https://pasteboard.co/IYUcRY6.png
what I guess I should see: https://i.imgur.com/UI22gpD.png (sent by u/triffid_hunter on reddit). We see there that emoji clearly belongs to noto-emoji and numbers are in some unknown fallback font.
Comment 1 Othremgliz 2020-03-13 13:54:50 UTC
Created attachment 618466 [details]
eselect fontconfig list
Comment 2 Othremgliz 2020-03-13 13:56:10 UTC
Created attachment 618468 [details]
cat /var/lib/portage/world | grep -i font
Comment 3 Othremgliz 2020-03-13 13:57:14 UTC
Created attachment 618470 [details]
fc-list
Comment 4 Othremgliz 2020-03-13 14:03:11 UTC
Created attachment 618474 [details]
dconf dump /
Comment 5 Othremgliz 2020-03-13 14:22:35 UTC
Created attachment 618476 [details]
emerge -pve pango fontconfig noto-emoji hack
Comment 6 Jonas Stein gentoo-dev 2020-03-14 20:40:03 UTC
please do not use pastebins, attach all files.
Comment 7 Othremgliz 2020-03-14 22:27:37 UTC
Created attachment 619210 [details]
what I see - case A
Comment 8 Othremgliz 2020-03-14 22:28:42 UTC
Created attachment 619212 [details]
what I see - case B
Comment 9 Othremgliz 2020-03-14 22:31:34 UTC
Created attachment 619226 [details]
what others see (without substring "y3110w pop3") in case B
Comment 10 Othremgliz 2020-03-14 22:43:08 UTC
Created attachment 619260 [details]
FC_DEBUG=1 pango-view in case A
Comment 11 Othremgliz 2020-03-14 22:44:05 UTC
Created attachment 619262 [details]
FC_DEBUG=1 pango-view in case B
Comment 12 Larry the Git Cow gentoo-dev 2021-07-04 18:24:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=390b2d03f557be7f6e8f45bfc1a6b7fe25aaf049

commit 390b2d03f557be7f6e8f45bfc1a6b7fe25aaf049
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-07-04 17:57:53 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-07-04 18:13:00 +0000

    x11-libs/pango: Version bump to 1.48.7
    
    * Depend on media-libs/freetype with USE="harfbuzz png" (bugs #712374,
      #717380)
    
    Closes: https://bugs.gentoo.org/712374
    Closes: https://bugs.gentoo.org/717380
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/arch/riscv/package.use.mask |  1 -
 x11-libs/pango/Manifest              |  1 +
 x11-libs/pango/pango-1.48.7.ebuild   | 83 ++++++++++++++++++++++++++++++++++++
 3 files changed, 84 insertions(+), 1 deletion(-)
Comment 13 Larry the Git Cow gentoo-dev 2021-11-01 20:41:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aa556416160e9ad6bafd733a64789627f36f1b2

commit 0aa556416160e9ad6bafd733a64789627f36f1b2
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2021-11-01 20:40:54 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2021-11-01 20:41:08 +0000

    x11-libs/pango: Do NOT depend on freetype[harfbuzz,png] anymore
    
    This caused ugly circular dependencies between harfbuzz and freetype
    on just about every initial installation. Minor font rendering issues
    accompanied by a warning are an acceptable tradeoff.
    
    Discussed in detail in releng team
    
    Bug: https://bugs.gentoo.org/712374
    Bug: https://bugs.gentoo.org/717380
    Bug: https://bugs.gentoo.org/813504
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../pango/{pango-1.48.10.ebuild => pango-1.48.10-r1.ebuild}   | 11 ++++++++++-
 .../pango/{pango-1.48.7-r1.ebuild => pango-1.48.7-r2.ebuild}  | 11 ++++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)