Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 641880

Summary: media-sound/cantata-2.2.0 with dev-texlive/texlive-fontsextra-2017 - Failed to compute left/right minimum bearings for "FontAwesome".
Product: Gentoo Linux Reporter: Bodo Graumann <mail>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: tracking upstream
Package list:
Runtime testing required: ---

Description Bodo Graumann 2017-12-21 06:48:41 UTC
media-sound/cantata uses fontawesome, as installed in /usr/share/cantata/fonts/fontawesome-4.3.0.ttf. Starting cantata though gives the following error:

Failed to compute left/right minimum bearings for "FontAwesome".

and fails to display most icons, as long as /usr/share/texmf-dist/fonts/type1/public/fontawesome/FontAwesome.pfb from dev-texlive/texlive-fontsextra also exists.

Comment 1 Andreas Sturmlechner gentoo-dev 2017-12-24 14:49:07 UTC
I somehow doubt that dev-tex*/* has anything to do with it.

Please check if you have media-fonts/fontawesome installed, and try to run cantata with /usr/share/cantata/fonts/fontawesome-4.3.0.ttf removed.
Comment 2 Bodo Graumann 2017-12-31 17:33:15 UTC
I do not have media-fonts/fontawesome installed and cantata has actually installed fontawesome-webfont.ttf, not 4.3.0.

Now, the following happens

with /usr/share/cantata/fonts/fontawesome-webfont.ttf
and /usr/share/texmf-dist/fonts/type1/public/fontawesome/FontAwesome.pfb:
In place of the icons only a narrow rectangle is drawn and I get the error
Failed to compute left/right minimum bearings for "FontAwesome".

without /usr/share/cantata/fonts/fontawesome-webfont.ttf
but with /usr/share/texmf-dist/fonts/type1/public/fontawesome/FontAwesome.pfb:
No icons are drawn, also no rectangle and no error message is given.

with /usr/share/cantata/fonts/fontawesome-webfont.ttf
but without /usr/share/texmf-dist/fonts/type1/public/fontawesome/FontAwesome.pfb:
The icons are drawn correctly and no error message is printed.
Comment 3 Eugene Shalygin 2018-06-13 14:36:06 UTC
Confirm the bug and the relation to /usr/share/texmf-dist/fonts/type1/public/fontawesome/FontAwesome.pfb. This little sample program [1] can be used instead of Cantata to verify the bug. However, I encountered this bug while trying to use FontAwesome icons in a zsh theme and discovered that Konsole displays no icons, while gnome-terminal does. 

Comment 4 Eugene Shalygin 2018-06-13 15:02:02 UTC
Comment 5 Andreas Sturmlechner gentoo-dev 2018-06-23 20:49:42 UTC
See also: