* 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
2022-11-18 14:18 ` Maxim Cournoyer
0 siblings, 2 replies; 5+ 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] 5+ 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
2022-11-18 14:18 ` Maxim Cournoyer
1 sibling, 1 reply; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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
@ 2022-11-18 14:18 ` Maxim Cournoyer
1 sibling, 0 replies; 5+ messages in thread
From: Maxim Cournoyer @ 2022-11-18 14:18 UTC (permalink / raw)
To: George Clemmer; +Cc: 31403-done
Hi,
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 ...
>>>
>>> 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
What was this bug about exactly? Having fonts installed to arbitrary
profiles usable by the system? If so, I think that's out of scope.
Note that installing fonts to a profile where XDG_DATA_DIRS is set
should now be discoverable by fontconfig.
I'm closing the issue, but feel free to reopen it if I missed something.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-18 14:19 UTC | newest]
Thread overview: 5+ 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
2022-11-18 14:18 ` Maxim Cournoyer
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).