unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* bug#31403: Font installed in non-default profile doesn't appear.
       [not found]   ` <87wowc2zsg.fsf@gmail.com>
@ 2018-05-10 15:56     ` George Clemmer
  2020-10-05  5:46       ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: George Clemmer @ 2018-05-10 15:56 UTC (permalink / raw)
  To: 31403


George Clemmer <myglc2@gmail.com> writes:

> Alex Kost <alezost@gmail.com> writes:
>
>> Hello George,
>>
>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>
>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>> by manifest (attached) into the "empty" default profile ...
>>>
>>> 'guix package -m manifest'
>>>
>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>> appear with the same manifest installed in the "foo" profile ...
>>
>> To make fonts available from a non-standard profile I added the
>> following line into my "~/config/fontconfig/fonts.conf":
>>
>>   <dir>~/path-to-my-profile/share/fonts</dir>
>
> Thank you Alex!
>
> On the chance it might be useful to someone else, this ...
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <!-- /etc/fonts/fonts.conf file to configure system font access -->
> <fontconfig>
> <dir>~/path-to-my-profile/share/fonts</dir>
> </fontconfig>
>
> ... in "~/.config/fontconfig/fonts.conf" worked for me ;-)

Given that this works, ISTM this can be fixed by placing ...

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<dir>share/fonts</dir>
</fontconfig>

... in "/etc/fonts/fonts.conf".

WDYT? - George

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2018-05-10 15:56     ` bug#31403: Font installed in non-default profile doesn't appear George Clemmer
@ 2020-10-05  5:46       ` Maxim Cournoyer
  2021-09-13  2:29         ` Sarah Morgensen
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2020-10-05  5:46 UTC (permalink / raw)
  To: George Clemmer; +Cc: 31403

merge 31403 22138
thanks

Hello,

George Clemmer <myglc2@gmail.com> writes:

> George Clemmer <myglc2@gmail.com> writes:
>
>> Alex Kost <alezost@gmail.com> writes:
>>
>>> Hello George,
>>>
>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>
>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>> by manifest (attached) into the "empty" default profile ...
>>>>
>>>> 'guix package -m manifest'
>>>>
>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>> appear with the same manifest installed in the "foo" profile ...

Assuming you run Emacs in that foo profile and don't see the font,
that's probably because XDG_DATA_DIRS is unset in that other profile.
glib is one of the package setting that variable.

I'm merging this bug with 22138, which would fix the root cause.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2020-10-05  5:46       ` Maxim Cournoyer
@ 2021-09-13  2:29         ` Sarah Morgensen
  2021-09-15  4:04           ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Sarah Morgensen @ 2021-09-13  2:29 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 31403

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>>
>>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>>> by manifest (attached) into the "empty" default profile ...
>>>>>
>>>>> 'guix package -m manifest'
>>>>>
>>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>>> appear with the same manifest installed in the "foo" profile ...
>
> Assuming you run Emacs in that foo profile and don't see the font,
> that's probably because XDG_DATA_DIRS is unset in that other profile.
> glib is one of the package setting that variable.
>
> I'm merging this bug with 22138, which would fix the root cause.

Will this be fixed by #50358?  If so, could you close this when that is
merged?

Thanks,

--
Sarah




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#31403: Font installed in non-default profile doesn't appear.
  2021-09-13  2:29         ` Sarah Morgensen
@ 2021-09-15  4:04           ` Maxim Cournoyer
  0 siblings, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2021-09-15  4:04 UTC (permalink / raw)
  To: Sarah Morgensen; +Cc: 31403

Hi!

Sarah Morgensen <iskarian@mgsn.dev> writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>>>>> George Clemmer (2018-05-08 20:04 -0400) wrote:
>>>>>
>>>>>> In a "headless" vm-image (sysi29.scm, attached), "font-dejavu" installed
>>>>>> by manifest (attached) into the "empty" default profile ...
>>>>>>
>>>>>> 'guix package -m manifest'
>>>>>>
>>>>>> ... appears in the emacs 'M-x menu-set-font' choice box. But it doesn't
>>>>>> appear with the same manifest installed in the "foo" profile ...
>>
>> Assuming you run Emacs in that foo profile and don't see the font,
>> that's probably because XDG_DATA_DIRS is unset in that other profile.
>> glib is one of the package setting that variable.
>>
>> I'm merging this bug with 22138, which would fix the root cause.
>
> Will this be fixed by #50358?  If so, could you close this when that is
> merged?

The above statement turned out to be untrue at the time; fontconfig used
to not honor XDG_DATA_DIRS.  That's now the case with the newest
fontconfig release, if XDG_DATA_DIRS is set (which probably won't -- due
to 22138), Emacs should be able to discover fonts in a different profile
than the user or system profiles.

Maxim




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-15  4:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87bmdp66e8.fsf@gmail.com>
     [not found] ` <87po24u405.fsf@gmail.com>
     [not found]   ` <87wowc2zsg.fsf@gmail.com>
2018-05-10 15:56     ` bug#31403: Font installed in non-default profile doesn't appear George Clemmer
2020-10-05  5:46       ` Maxim Cournoyer
2021-09-13  2:29         ` Sarah Morgensen
2021-09-15  4:04           ` Maxim Cournoyer

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 NNTP newsgroup(s).