Subject: Re: bug#38498: Fontconfig does not find fonts in non-default profiles

From: Alex Kost <[email-masked]>
Date: Thu, 05 Dec 2019 20:06:42 +0300

Pierre Neidhardt (2019-12-05 11:43 +0100) wrote:

> The fontconfig package has this bit:
>
> (string-append "--with-add-fonts="
>   "~/.guix-profile/share/fonts,"
>   "/run/current-system/profile/share/fonts")
>
> If I understand correctly, fonts can only be installed at the system
> level or in ~/.guix-profile.
> Is there a way to install fonts in a non-default profile?

I install fonts into a special profile.  All you need to do is edit your
"~/.config/fontconfig/fonts.conf" file.  Mine looks like this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>~/.guix-profiles/fonts/fonts/share/fonts</dir>
</fontconfig>

This allows ‘fc-cache’ and similar commands to find fonts from a
non-standard directory.

-- 
Alex