From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timothy Sample Subject: Re: how to make fonts available to a service? Date: Sat, 13 Jul 2019 11:29:04 -0400 Message-ID: <87pnmenebj.fsf@ngyro.com> References: <2922F2BE-80D0-4A9E-8F74-AF02546E032A@vllmrt.net> <087B3C4D-4A3D-435B-826A-0BD2D475A122@vllmrt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60447) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmJxZ-0005Wx-L3 for guix-devel@gnu.org; Sat, 13 Jul 2019 11:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmJxX-0002KR-Ok for guix-devel@gnu.org; Sat, 13 Jul 2019 11:29:13 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34717) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmJxX-0002HE-Cu for guix-devel@gnu.org; Sat, 13 Jul 2019 11:29:11 -0400 In-Reply-To: <087B3C4D-4A3D-435B-826A-0BD2D475A122@vllmrt.net> (Robert Vollmert's message of "Sat, 13 Jul 2019 16:59:59 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Robert Vollmert Cc: guix-devel@gnu.org Hi Robert, Robert Vollmert writes: >> On 12. Jul 2019, at 22:42, Robert Vollmert wrote: >> I=E2=80=99m a bit at a loss right now with respect to how to make fonts = available >> to system services. >>=20 >> I=E2=80=99m running a service that uses rsvg-convert (from package librs= vg) to >> raster some SVG graphics. However, it appears that the default fonts >> are missing some Unicode character. >>=20 >> 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-con= vert >> 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 =E2=80=9Cprofile-service-type=E2=80=9D= in your service type definition to add packages to the system profile. It=E2=80=99s 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