unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: 38498@debbugs.gnu.org
Subject: bug#38498: Fontconfig does not find fonts in non-default profiles
Date: Thu, 05 Dec 2019 20:06:42 +0300	[thread overview]
Message-ID: <87o8wm66sd.fsf@gmail.com> (raw)
In-Reply-To: <871rtjm4rt.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 05 Dec 2019 11:43:34 +0100")

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

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:


[-- Attachment #2: fonts.conf --]
[-- Type: text/plain, Size: 146 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 110 bytes --]


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

-- 
Alex

  parent reply	other threads:[~2019-12-05 17:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-05 10:43 bug#38498: Fontconfig does not find fonts in non-default profiles Pierre Neidhardt
     [not found] ` <handler.38498.B.15755426238510.ack@debbugs.gnu.org>
2019-12-05 10:47   ` bug#38498: Acknowledgement (Fontconfig does not find fonts in non-default profiles) Pierre Neidhardt
2019-12-05 17:06 ` Alex Kost [this message]
2019-12-05 17:52   ` bug#38498: Fontconfig does not find fonts in non-default profiles Pierre Neidhardt
2019-12-06 17:45     ` Alex Kost
2019-12-06 18:01       ` Pierre Neidhardt
2019-12-10 16:53         ` Ludovic Courtès
2019-12-10 17:11           ` Pierre Neidhardt
2019-12-12 13:04             ` Ludovic Courtès
2019-12-13 13:11               ` Pierre Neidhardt
2019-12-14 14:08                 ` Ludovic Courtès
2019-12-15 22:14                 ` Bengt Richter
2019-12-16 15:25                   ` zimoun
2022-08-19 14:26 ` Maxim Cournoyer

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=87o8wm66sd.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=38498@debbugs.gnu.org \
    --cc=mail@ambrevar.xyz \
    /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).