From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adonay Felipe Nogueira Subject: bug#26659: [contact.ng0@cryptolab.net: Re: fonts bug in icecat?] Date: Mon, 08 May 2017 15:29:18 -0300 Message-ID: <871srzb3sx.fsf@openmailbox.org> References: <20170425201825.GA11441@jasmine> <20170425205205.6wuj6sm2lkq66gmn@abyayala> <20170426085407.mvzhprmvi7eejebs@abyayala> <20170426210509.6lzdmj5isiqbrooi@abyayala> <87fugpfx8h.fsf@gmail.com> <20170430204722.jdkxylyjn535cvku@abyayala> <20170430221811.dgum3c72fioplm2v@abyayala> <20170430222845.zqnkcwedmo3k46ls@abyayala> <87a86nb6x0.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7nQ5-0002wW-S2 for bug-guix@gnu.org; Mon, 08 May 2017 14:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7nQ2-0004fg-MR for bug-guix@gnu.org; Mon, 08 May 2017 14:30:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7nQ2-0004fa-Ij for bug-guix@gnu.org; Mon, 08 May 2017 14:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7nQ2-0001D6-Cu for bug-guix@gnu.org; Mon, 08 May 2017 14:30:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7nPZ-0002mg-0A for bug-guix@gnu.org; Mon, 08 May 2017 14:29:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7nPR-0004RB-Jp for bug-guix@gnu.org; Mon, 08 May 2017 14:29:28 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:57833 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7nPR-0004Og-Cu for bug-guix@gnu.org; Mon, 08 May 2017 14:29:25 -0400 In-Reply-To: <87a86nb6x0.fsf@openmailbox.org> (Adonay Felipe Nogueira's message of "Mon, 08 May 2017 14:22:03 -0300") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 26659@debbugs.gnu.org Or you can do "the inverse", by doing this: 1. *Do not* install fontconfig from Guix, but make sure to have fontcofig installed in your foreign distro. 2. Make the file "$XDG_CONFIG_HOME/fontconfig/fonts.conf" with contents: # Begin of file ~/.guix-profile/share/fonts # End of file 3. Do: $ fc-cache -rfv So, the way I see it is that we have to tell the user that he must make such "$XDG_CONFIG_HOME/fontconfig/fonts.conf" and choose whether he'll be using the foreign distro's fontconfig or the fontconfig from Guix, and chnage this "fonts.conf" file I just mentioned accordingly. If people agree on, I can contribute with this documentation. For those willing to explore the issue more: I read the user documentation for Fontconfig, and it has a variable called FONTCONFIG_PATH, but it doesn't accept multiple values separated by colon, it only picks the first value and ignores the rest (I tested it with `FONTCONFIG_PATH="/etc/fonts:$GUIX_PROFILE/etc/fonts" fc-cache -rfv` and with `FONTCONFIG_PATH="$GUIX_PROFILE/etc/fonts:/etc/fonts" fc-cache -rfv` and they resulted differently, but the only common point was the fonts found inside "$XDG_DATA_HOME/fonts" because both places referenced in FONTCONFIG_PATH paths have a "fonts.conf" file that has a part similar to "fonts").