[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to make fonts available to a service?

From: Timothy Sample
Subject: Re: how to make fonts available to a service?
Date: Sat, 13 Jul 2019 11:29:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Hi Robert,

Robert Vollmert <address@hidden> writes:

>> On 12. Jul 2019, at 22:42, Robert Vollmert <address@hidden> wrote:
>> I’m a bit at a loss right now with respect to how to make fonts available
>> to system services.
>> I’m running a service that uses rsvg-convert (from package librsvg) to
>> raster some SVG graphics. However, it appears that the default fonts
>> are missing some Unicode character.
>> It seems that I can make fonts available in my user profile by installing
>> the corresponding font package, and those would be available to rsvg-convert
>> via fontconfig via ~/.guix-profile/share/fonts. But how would I do the
>> same for a service?
> It turns out this was easy to fix, by adding a font package to the list
> of installed packages in the operating system definition.
> (and apologies for sending this to -devel instead of help-)

Just so you know, you can extend the “profile-service-type” in your
service type definition to add packages to the system profile.  It’s
kind of like having propagated inputs for your service.  The GDM service
needs to make fonts available, so it (effectively) does the following.

    (service-type (name 'gdm)
                     (list ...
                           (service-extension profile-service-type
                                              (list font-cantarell))

Hope that helps!

-- Tim

reply via email to

[Prev in Thread] Current Thread [Next in Thread]