From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0NWVGT5Fc19oYQAA0tVLHw (envelope-from ) for ; Tue, 29 Sep 2020 14:31:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WNOHFT5Fc1/kSAAA1q6Kng (envelope-from ) for ; Tue, 29 Sep 2020 14:31:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 01FC99400EF for ; Tue, 29 Sep 2020 14:31:25 +0000 (UTC) Received: from localhost ([::1]:47640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNGf6-0006kV-7E for larch@yhetil.org; Tue, 29 Sep 2020 10:31:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNGer-0006hN-Qz for help-guix@gnu.org; Tue, 29 Sep 2020 10:31:10 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:16550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNGem-0000bE-Jo for help-guix@gnu.org; Tue, 29 Sep 2020 10:31:09 -0400 Date: Tue, 29 Sep 2020 14:30:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601389859; bh=CRNmxMajaRXn2la7Y33DB0eIqRJXtIOegksVt2gfS1c=; h=Date:To:From:Reply-To:Subject:From; b=g+IciIK/ZKpVOLT+lWtj5CnbQWxq9uVzJ1pC/+N1TC+/FTZBPL6kLzD1q9Jxu7LwC SLYTxC5/sBllrDTBTDArF04DB6O+smjuDmogdI5ScLHXFjd7kNn+lANjIKmXBm1rJ4 /bWbLs8t4GB2VjEZ+Mcm5zUps+N+D9lTnvdwglKE= To: "help-guix\\@gnu.org" From: =?utf-8?Q?Todor_Kondi=C4=87?= Subject: Fonts do not work with multiple profiles (fontconfig) and a proposed workaround Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=tk.code@protonmail.com; helo=mail-40131.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/29 10:30:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.614, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: =?utf-8?Q?Todor_Kondi=C4=87?= Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=g+IciIK/; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: nKty0Jg1oklA Here's my experience with guix-as-a-package-manager, fontconfig and multipl= e profiles. If fonts are installed in a profile different than the default one, applica= tions do not pick them up out of the box. I.e. icecat shows characters as s= quares and you cannot select a cool non standard font in your GTK Emacs. After digging into this matter, I concluded that the culprit is the main co= nfig file situated in some-nondefault-guix-profile/etc/fonts/fonts.conf Here's a snippet: ------------------------- =09/gnu/store/7y3lvk3xf4im8n44337mc6y0ccysvfia-font-dejavu-2.37/share/= fonts =09~/.guix-profile/share/fonts /run/current-system/profile/= share/fonts =09fonts =09 =09~/.fonts --------------------------- Clearly, some-nondefault-guix-profile/share/fonts is not among the list of = dirs that are searched for font definitions. I'd call this a bug, but maybe= it's by design. Still, shouldn't guix package definitions respect the -p f= lag to package command? Anyway, the workaround is the following. See this snippet of the same confi= g file, ---------------------------- =09conf.d ----------------------------- This means it includes the conf files in ...profile/etc/conf.d. The README = file reveals that 5?-*.conf files are used for additional customisation. Th= is makes 50-user.conf particularly interesting. And, here it is ... ----------------------------- fontconfig/conf.d =09fontconfig/fonts.conf =09 =09~/.fonts.conf.d =09~/.fonts.conf ----------------------------- Apparently , ~/.config/fontconfig/fonts.conf (xdg prefix being ~/.config) i= s the place to add some more config After creating ~/.config/fontconfig/fonts.conf with the following content ----------------------------- =09 =09=09 =09 =09Default configuration file ~/.guix-pillars/pillar/share/fonts ------------------------------ and running fc-cache -rvf the fontconfig-aware programs were able to select= fonts from the non-default guix profile. Hope this helps (me again in six monts from now)! T