Hi, George Clemmer <myg...@gmail.com> writes:
> George Clemmer <myg...@gmail.com> writes: > >> Alex Kost <alez...@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