* bug#30435: libreoffice: Fonts don't show up after install
@ 2018-02-12 11:06 hmk
2020-04-02 9:09 ` Pierre Neidhardt
[not found] ` <87a73ui78x.fsf@ambrevar.xyz>
0 siblings, 2 replies; 8+ messages in thread
From: hmk @ 2018-02-12 11:06 UTC (permalink / raw)
To: 30435
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
Package: guix
After installing and running libreoffice with
$ guix package -i libreoffice@5.3.7.2
$ soffice
no fonts show up (see attached screenshot).
Following the instructions provided by
https://www.gnu.org/software/guix/manual/html_node/Application-Setup.html#Application-Setup
I did
$ guix package -i fontconfig font-gnu-freefont-ttf
$ fc-cache -f
and this solves the issue.
Is this a missing dependency? Even though instructions to fix this
problem are given, from an end-user's perspective it would be nicer
perhaps to
have it automated?
(It's the first time I am posting to debbugs.gnu.org -- apologies if
something is not done in the proper way or form.)
[-- Attachment #2: soffice-no-fonts.png --]
[-- Type: image/png, Size: 49865 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
2018-02-12 11:06 bug#30435: libreoffice: Fonts don't show up after install hmk
@ 2020-04-02 9:09 ` Pierre Neidhardt
[not found] ` <87a73ui78x.fsf@ambrevar.xyz>
1 sibling, 0 replies; 8+ messages in thread
From: Pierre Neidhardt @ 2020-04-02 9:09 UTC (permalink / raw)
To: hmk; +Cc: 30435, guix-devel
I can reproduce this on guix ce226e9d8d52d2530f057f2000d36c0d55380ade.
But libreoffice is not the only victim: it seems that most applications
fail to see the fonts installed in the user profile (on Guix System).
Emacs is one example.
Running
--8<---------------cut here---------------start------------->8---
fc-cache -fv
--8<---------------cut here---------------end--------------->8---
fixes the issue.
Should we run this command in a profile hook?
--
Pierre Neidhardt
https://ambrevar.xyz/
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
[not found] ` <87a73ui78x.fsf@ambrevar.xyz>
@ 2020-04-02 9:19 ` Nicolò Balzarotti
[not found] ` <878sje453l.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me>
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Nicolò Balzarotti @ 2020-04-02 9:19 UTC (permalink / raw)
To: Pierre Neidhardt, hmk; +Cc: 30435, guix-devel
Pierre Neidhardt <mail@ambrevar.xyz> writes:
Hi, I wanted to add that the opposite is also true: removing a font
without running fc-cache always makes my emacs die on start, so I agree
that running the command automatically makes sense.
Are there any unwanted side-effects?
Thanks, Nicolò
> I can reproduce this on guix ce226e9d8d52d2530f057f2000d36c0d55380ade.
>
> But libreoffice is not the only victim: it seems that most applications
> fail to see the fonts installed in the user profile (on Guix System).
> Emacs is one example.
>
> Running
>
> --8<---------------cut here---------------start------------->8---
> fc-cache -fv
> --8<---------------cut here---------------end--------------->8---
>
> fixes the issue.
>
> Should we run this command in a profile hook?
>
> --
> Pierre Neidhardt
> https://ambrevar.xyz/
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
[not found] ` <878sje453l.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me>
@ 2020-04-02 9:37 ` John Soo
2020-04-02 15:47 ` Ludovic Courtès
1 sibling, 0 replies; 8+ messages in thread
From: John Soo @ 2020-04-02 9:37 UTC (permalink / raw)
To: Nicolò Balzarotti; +Cc: 30435, guix-devel, Pierre Neidhardt, hmk
Hi there,
I think this is the same issue as 26877.
Can font information be compiled into a fonts.conf?
- John
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
[not found] ` <87a73ui78x.fsf@ambrevar.xyz>
2020-04-02 9:19 ` Nicolò Balzarotti
[not found] ` <878sje453l.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me>
@ 2020-04-02 15:46 ` Ludovic Courtès
[not found] ` <875zehopqf.fsf@gnu.org>
3 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2020-04-02 15:46 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: 30435, guix-devel, hmk
Hi,
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> Running
>
> fc-cache -fv
>
> fixes the issue.
>
> Should we run this command in a profile hook?
Profile hooks are normal derivations; as such, they don’t have access to
anything but their dependencies and their output(s).
There’s currently no infrastructure to run arbitrary code upon package
installation (which I think is a feature more than a bug :-)). We could
make an exception, but it’s kinda ugly.
I wonder if, instead, we could have Fontconfig realize that the cache is
stale somehow.
Alternately, we could generate the cache in a profile hook and have
Fontconfig use that cache instead of the one in ~/.cache. However,
Fontconfig would need to be able to:
1. Be told which cache to use, not just the one from ~/.guix-profile,
so that it works equally well with other profiles.
2. Merge several caches, so it can also account for fonts installed in
/run/current-system/profile.
We discussed all this several times in the past but I don’t think it
went further.
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
[not found] ` <878sje453l.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me>
2020-04-02 9:37 ` John Soo
@ 2020-04-02 15:47 ` Ludovic Courtès
1 sibling, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2020-04-02 15:47 UTC (permalink / raw)
To: Nicolò Balzarotti; +Cc: 30435, guix-devel, Pierre Neidhardt, hmk
Hi Nicolò,
Nicolò Balzarotti <anothersms@gmail.com> skribis:
> Hi, I wanted to add that the opposite is also true: removing a font
> without running fc-cache always makes my emacs die on start, so I agree
> that running the command automatically makes sense.
Actually, if you can capture a stack trace of Emacs, that may tell us
what part of Fontconfig to look at if we want to change it to gracefully
handle stale cache entries.
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
[not found] ` <875zehopqf.fsf@gnu.org>
@ 2020-04-02 15:59 ` Pierre Neidhardt
[not found] ` <87pma4l3ug.fsf@gmail.com>
1 sibling, 0 replies; 8+ messages in thread
From: Pierre Neidhardt @ 2020-04-02 15:59 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 30435, guix-devel, hmk
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
OK, thanks for the details.
So the solution is the same as the one we discussed
previously about installing fonts to the non-default profile.
Makes sense.
I might give it a shot when I find the time ;)
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#30435: libreoffice: Fonts don't show up after install
[not found] ` <874jrgkxhx.fsf@gmail.com>
@ 2023-08-29 3:28 ` Maxim Cournoyer
0 siblings, 0 replies; 8+ messages in thread
From: Maxim Cournoyer @ 2023-08-29 3:28 UTC (permalink / raw)
To: Felix Lechner; +Cc: 30435-done, Ludovic Courtès, Pierre Neidhardt, hmk
Hello,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hi Felix,
>
> Felix Lechner <felix.lechner@lease-up.com> writes:
>
>> Hi,
>>
>> On Mon, Feb 20, 2023 at 8:06 AM Maxim Cournoyer
>> <maxim.cournoyer@gmail.com> wrote:
>>>
>>> I haven't seen this problem in a long while, so I'm inclined to think
>>> it's been resolved.
>>
>> I think I had that issue with a fresh install within the last year and
>> based on advice in IRC (thanks nckx!) ran 'fc-cache -fv'.
On a second thought, let's close this issue and reopen a new one if it
rears its ugly head again :-).
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-08-29 3:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12 11:06 bug#30435: libreoffice: Fonts don't show up after install hmk
2020-04-02 9:09 ` Pierre Neidhardt
[not found] ` <87a73ui78x.fsf@ambrevar.xyz>
2020-04-02 9:19 ` Nicolò Balzarotti
[not found] ` <878sje453l.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me>
2020-04-02 9:37 ` John Soo
2020-04-02 15:47 ` Ludovic Courtès
2020-04-02 15:46 ` Ludovic Courtès
[not found] ` <875zehopqf.fsf@gnu.org>
2020-04-02 15:59 ` Pierre Neidhardt
[not found] ` <87pma4l3ug.fsf@gmail.com>
[not found] ` <CAFHYt56MJn=rXZTqvnjNb4dQGBXx55GoZM6i+zd+SswiSUP+pQ@mail.gmail.com>
[not found] ` <874jrgkxhx.fsf@gmail.com>
2023-08-29 3:28 ` Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).