No comments on this (yet) so just opened a merge request here: https://gitlab.freedesktop.org/fontconfig/fontconfig/merge_requests/30 If anyone can review, that would be appreciated. On Thu, Jan 31, 2019 at 7:36 PM Akira TAGOH <akira@xxxxxxxxx> wrote: > > I've done implementation for salt: > https://gitlab.freedesktop.org/tagoh/fontconfig/commits/flatpak-rework > > That should works as expected. > For summary to support this on flatpak side, All of flatpaks needs to have: > > <dir salt="something">/usr/share/fonts</dir> > > and more if there are any fonts directories on sandbox where has same > directory names on host. > or may be better having a salt regardless of it to make them > differenciated to host perhaps. I'll leave it to you, Alex. > > No salt should be needed for remap-dir so far. > > Ah, and if you want to manage fonts directories in a single file and > don't want to modify fonts.conf, you can put <reset-dirs/> prior to > re-define own fonts directories with dir elements. > > Please test it. > > On Thu, Jan 31, 2019 at 5:56 PM Alexander Larsson > <alexander.larsson@xxxxxxxxx> wrote: > > > > On Thu, Jan 31, 2019 at 9:54 AM Akira TAGOH <akira@xxxxxxxxx> wrote: > > > > > > Also if host dirs are available as is on sandbox like Alex concerned, > > > we could simply have: > > > > > > <dir>/opt/fonts</dir> > > > > Yeah, assuming there is no global default salt that messes this up. > > > > -- > Akira TAGOH -- Akira TAGOH _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/fontconfig