* how to make fonts available to a service?
@ 2019-07-12 20:42 Robert Vollmert
2019-07-13 14:59 ` Robert Vollmert
0 siblings, 1 reply; 3+ messages in thread
From: Robert Vollmert @ 2019-07-12 20:42 UTC (permalink / raw)
To: guix-devel
Hi all,
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?
Thanks,
Robert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to make fonts available to a service?
2019-07-12 20:42 how to make fonts available to a service? Robert Vollmert
@ 2019-07-13 14:59 ` Robert Vollmert
2019-07-13 15:29 ` Timothy Sample
0 siblings, 1 reply; 3+ messages in thread
From: Robert Vollmert @ 2019-07-13 14:59 UTC (permalink / raw)
To: guix-devel
> On 12. Jul 2019, at 22:42, Robert Vollmert <rob@vllmrt.net> 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-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to make fonts available to a service?
2019-07-13 14:59 ` Robert Vollmert
@ 2019-07-13 15:29 ` Timothy Sample
0 siblings, 0 replies; 3+ messages in thread
From: Timothy Sample @ 2019-07-13 15:29 UTC (permalink / raw)
To: Robert Vollmert; +Cc: guix-devel
Hi Robert,
Robert Vollmert <rob@vllmrt.net> writes:
>> On 12. Jul 2019, at 22:42, Robert Vollmert <rob@vllmrt.net> 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)
(extensions
(list ...
(service-extension profile-service-type
(list font-cantarell))
...))
...)
Hope that helps!
-- Tim
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-13 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-12 20:42 how to make fonts available to a service? Robert Vollmert
2019-07-13 14:59 ` Robert Vollmert
2019-07-13 15:29 ` Timothy Sample
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).