unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Alex Kost <alezost@gmail.com>, 38498@debbugs.gnu.org
Subject: bug#38498: Fontconfig does not find fonts in non-default profiles
Date: Fri, 13 Dec 2019 14:11:13 +0100	[thread overview]
Message-ID: <87fthobcb2.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87zhfx8zl4.fsf@gnu.org>

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

Just read this:
https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/126

Could we do the following: use a profile hook to generate a config file
and set the environment variable FONTCONFIG_FILE to this file?

(I feel that we can't do that because the path of the hook-generated
cannot be known in advance.)


I looked at what NixOS does in
nixpkgs/pkgs/development/libraries/fontconfig/default.nix:

>  - NixOS creates /etc/fonts/${configVersion}/fonts.conf link to $out/etc/fonts/fonts.conf,
>     and other modifications should go to /etc/fonts/${configVersion}/conf.d

We don't have a global font folder and we probably don't want to have
one, so I guess this is not ideal.

The <dir> fontconfig setting in Nix is

--8<---------------cut here---------------start------------->8---
      <!-- nix user profile -->
      <dir>~/.nix-profile/lib/X11/fonts</dir>
      <dir>~/.nix-profile/share/fonts</dir>
      <!-- nix default profile -->
      <dir>/nix/var/nix/profiles/default/lib/X11/fonts</dir>
      <dir>/nix/var/nix/profiles/default/share/fonts</dir>
--8<---------------cut here---------------end--------------->8---

so it probably suffers from the same issue.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2019-12-13 13:12 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 ` bug#38498: Fontconfig does not find fonts in non-default profiles Alex Kost
2019-12-05 17:52   ` 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 [this message]
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=87fthobcb2.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=38498@debbugs.gnu.org \
    --cc=alezost@gmail.com \
    --cc=ludo@gnu.org \
    /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).