unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Timothy Sample <samplet@ngyro.com>
To: Robert Vollmert <rob@vllmrt.net>
Cc: guix-devel@gnu.org
Subject: Re: how to make fonts available to a service?
Date: Sat, 13 Jul 2019 11:29:04 -0400	[thread overview]
Message-ID: <87pnmenebj.fsf@ngyro.com> (raw)
In-Reply-To: <087B3C4D-4A3D-435B-826A-0BD2D475A122@vllmrt.net> (Robert Vollmert's message of "Sat, 13 Jul 2019 16:59:59 +0200")

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

      reply	other threads:[~2019-07-13 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pnmenebj.fsf@ngyro.com \
    --to=samplet@ngyro.com \
    --cc=guix-devel@gnu.org \
    --cc=rob@vllmrt.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).