Font broken in GUI application with guix pack

DoneSubmitted by Alexandros Theodotou.
Details
3 participants
  • Alexandros Theodotou
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
Severity
normal
A
A
Alexandros Theodotou wrote on 17 May 2020 06:05
(address . bug-guix@gnu.org)
5ab2b1ecc173c0114115f653f6476430a387df9e.camel@zrythm.org
Hi,
This is the command I ran to generate a pack:guix pack -RR -S /opt/zrythm/bin=bin -L . zrythm
I then tried moving this pack to a VM running another distro(archlinux) and all letters are shown as boxes. I have asked otherpeople to test it on other distros, including debian, and they reportedthe same issue.
I am not exactly sure what is missing. Attaching a screenshot of whatit looks like.
I tried adding a propagated input for font-cantarell, font-gnu-freefont and font-dejavu just to see if it would work, without success.
Thanks,Alex
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEESBMjhK0999huJUuDAi6uQjE9cPMFAl7AuBMACgkQAi6uQjE9cPP+0gf8CtAcWNfym3queULzX519Z6oFXADR4UUtyCKFnvHY+y15cz7O48OpSGvExM7K8kHzKYWIrLDX34p5uFbNZjCILs39Kbryf6epcUzjNS20VjuGdqBmjWAzUWhhgC+mI2QBLmck3YYnkbbPQkpzLgs850Bvxx0GVX068umPctnYpwJvm5ysRlGF8ENqdFsg6ERRqR2SXBmuEVwUXPQASyJLPD+pwsLFVDHyi6aJ+Hd/jm/QIhq91/IoB62nSBNIT/XgqYS/k9hPEJ7P/AHc74Wkv3GgvgrBGol6gcYfcurgcbT523f4NgVdhLezsNL/ntKPF8+guDf1UQN+F7gJx2kmLQ===IH2l-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 19 May 2020 15:43
(name . Alexandros Theodotou)(address . alex@zrythm.org)(address . 41344@debbugs.gnu.org)
87k118ghw0.fsf@gnu.org
Hi,
Alexandros Theodotou <alex@zrythm.org> skribis:
Toggle quote (14 lines)> This is the command I ran to generate a pack:> guix pack -RR -S /opt/zrythm/bin=bin -L . zrythm>> I then tried moving this pack to a VM running another distro> (archlinux) and all letters are shown as boxes. I have asked other> people to test it on other distros, including debian, and they reported> the same issue.>> I am not exactly sure what is missing. Attaching a screenshot of what> it looks like.>> I tried adding a propagated input for font-cantarell, font-gnu-freefont > and font-dejavu just to see if it would work, without success.
Did it work roughly before the ‘core-updates’ merge?
Our ‘fontconfig’ package searches ~/.guix-profile/share/fonts and/run/current-system/profile/share/fonts by default, which obviouslydoesn’t work on foreign distros.
As discussed on IRC, could you check “strace -f” the program and checkwhere it’s looking for fonts (TTFs?)?
Thanks,Ludo’.
A
A
Alexandros Theodotou wrote on 19 May 2020 19:49
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 41344@debbugs.gnu.org)
c0eeeff396f9fedf18fe3c05165cb4d2c81410d2.camel@zrythm.org
Toggle quote (2 lines)> Did it work roughly before the ‘core-updates’ merge?
This is the first time I tried `guix pack` so I don't know.
Toggle quote (4 lines)> As discussed on IRC, could you check “strace -f” the program and> check> where it’s looking for fonts (TTFs?)?
I'm not really sure what to look for. Here is the strace -f output: https://www.zrythm.org/downloads/trace.text.tar.gz
The package I'm trying to pack is zrythm-next from here:https://git.zrythm.org/cgit/guix-repo/tree/audio.scm
Thanks,Alex
On Tue, 2020-05-19 at 15:43 +0200, Ludovic Courtès wrote:
Toggle quote (11 lines)> > > > Our ‘fontconfig’ package searches ~/.guix-profile/share/fonts and> /run/current-system/profile/share/fonts by default, which obviously> doesn’t work on foreign distros.> > > > Thanks,> Ludo’.
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEESBMjhK0999huJUuDAi6uQjE9cPMFAl7EHAwACgkQAi6uQjE9cPMtfwgAlvfM2N7aM3ySI3KkdIF+yqRUnvN9yx92MB/kkk1mNt4AXyUdjG03J9hRdgyV/XQUOlNabudhtiYSUzIpSchcjg2ZWXmNDpB/9hvb5Lp7n8vGjF1eOFc4yQII/Qf85NKpL5GyTo9roSCtBNYtCYWmQCiK1lXWat3zVNliajXyywye37X1b+YJsvSFxRsQ57MM/FTZjqZ8xNxCmKqjUz+iQ3+pjP3I2GMBAXd3pGrvJjO58HLYf9kKZsGBZdfPBTLju+TgNUBbYzIe5+ZCfdjW7taNdfdHdQa+1kvFE+SPMA6ROBbbBaS9eht4F0YDRWRWIZ7QqQrhcELqXIlDG9Uy4w===r4xn-----END PGP SIGNATURE-----

M
M
Marius Bakke wrote on 19 May 2020 20:11
87sgfvre0n.fsf@devup.no
Alexandros Theodotou <alex@zrythm.org> writes:
Toggle quote (13 lines)> Hi,>> This is the command I ran to generate a pack:> guix pack -RR -S /opt/zrythm/bin=bin -L . zrythm>> I then tried moving this pack to a VM running another distro> (archlinux) and all letters are shown as boxes. I have asked other> people to test it on other distros, including debian, and they reported> the same issue.>> I am not exactly sure what is missing. Attaching a screenshot of what> it looks like.
Can you try the patch posted athttps://lists.gnu.org/archive/html/guix-devel/2020-05/msg00281.html ?
When no fonts are installed in the common Guix profiles, applicationsonly "see" the font hard-coded into fontconfig, which happens to bebroken[*] since the recent 'core-updates' merge for any applicationusing Pango (such as GTK+).
[*] because fontconfig currently uses "gs-fonts", which are bitmap only,and Pango no longer supports bitmap fonts[**][**] https://gitlab.gnome.org/GNOME/pango/issues/386
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7EIUgACgkQoqBt8qM6VPqKGQgAmRLUJHfAtuOQsIZCgWcxUEeTJFFw84QOSTMUSPLvwuU7/w2VcHKTdxbDTYxsBT6gTI6X+OFygdz2KzgBiF3m+t3C/VbhfmFS7ohsWLBk2fQM+DZH8BWzWDRSQcpl1LloEPpTiPI67gXpJDRCtpu5qZ10/TGJZdLdg5MsyFlwJs5BN1/O6accDS52B0ik5MaPaNhNqMW/QcslE7rkdI1BoiiKb+oxVyf/42iofjGYNYHAGPdYfOo/wQv5ZQYnpY1OVSMJ5HZWUODKTwjr50awG2aAu1sO4zAX7wkVnB6xFP8wUZv9gvppL01AglQUk3By1a80vNxdN+eyIZlvEjGC1A===OgKn-----END PGP SIGNATURE-----
M
M
Marius Bakke wrote on 21 May 2020 00:00
Re: [PATCH] gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts.
(name . Leo Famulari)(address . leo@famulari.name)(address . guix-devel@gnu.org)
87eere9shk.fsf@devup.no
Leo Famulari <leo@famulari.name> writes:
Toggle quote (13 lines)> On Sun, May 17, 2020 at 04:50:12PM +0200, Marius Bakke wrote:>> This is a hack to make (some) fonts working when users don't have fonts>> specified in their system configuration, and (crucially) places where>> the fontconfig cache may be unavailable such as 'guix pack's.>> >> I'm not sure whether font-dejavu is a good replacement here. Another>> approach could be to convert gs-fonts to TrueType or OpenType format.>> >> Thoughts? I don't know much about fonts and would appreciate feedback.>> I think you should push right away, assuming that it helps and doesn't> rebuild the world.
I pushed the patch as ab9de8cfb0525ef43668712ac898707f97f9a620.
I verified that it fixes the immediate problem with fonts in the Guixmanual (#41282) as well as 'guix pack' (#41344). It should also providea decent fallback for cases where the user did not explicitly installany fonts such as in #41241.
Hoping for angry reports now about why such a poor replacement font waschosen. ;-)
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7FqIgACgkQoqBt8qM6VPrOBgf9F4IpPAmLvtavCpM/H2knY+lF1QxombhJB4rHXuj1P0F4PEiYi4o1u666IYeNnLzdJ1Pui6BTI+MwJ94WnpKMN9Tt0a/5qc5nWFNvuL4iP7RmxrhVSeE3W6E/ZBuR2FVSU86ncsXX5raRLngWj5Ft9I4KTjVAW5mLrNMHtEHQ0yh2AikuZplnJExyCpSJAEo4Hvs8iy1VBdB9GTRYui3MWYU6lYg0mOVpxTE12AjD8nglyrzF7QIofLfacVdAjnxM+/cbKSk96wRzTlrOre3DxQlOzSmF1m+ExXbuvya0WBqlrWrS96U/THm4nUEJOBg7Dfe3GdCIsA7umMeXQwLGuQ===IFkc-----END PGP SIGNATURE-----
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 41344@debbugs.gnu.org