<div dir="ltr"><a class="gmail_plusreply" id="plusReplyChip-0">+Alex</a><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 29, 2018 at 10:49 PM Keith Packard <<a href="mailto:keithp@keithp.com">keithp@keithp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Akira TAGOH <<a href="mailto:akira@tagoh.org" target="_blank">akira@tagoh.org</a>> writes:<br>
<br>
> Not rare today. this has been made to improve flatpaks startup time<br>
> because regenerating fontconfig caches always happened.<br>
<br>
I'd like to find a solution which doesn't involve writing files into the<br>
font directories themselves, but I'm having trouble thinking of how that<br>
might work without involving changes in the flatpaks themselves. All we<br>
really need is some way to compute the right cache file name given the<br>
path found inside the flatpak.<br>
<br>
Is the .fonts.conf file for the flatpak computed dynamically? Can we<br>
adjust how that is built? What if that file contained an association<br>
between the paths it uses and the paths used outside? We could then<br>
construct the external path from the internal path and use that to<br>
generate the right cache file name.<br>
<br>
Would we need more than one mapping per <dir> element in the font<br>
configuration?<br>
<br>
Alternatively, a flat-pak using system could place a magic file in each<br>
top-level font directory for fontconfig to use for this mapping. As that<br>
would simply contain the name of the directory in the external<br>
namespace, it would be easy to generate with a shell script even. At<br>
least we wouldn't be creating and destroying these files each time<br>
fc-cache runs, as we wouldn't need them in each new directory, only at<br>
the top of each font tree.<br>
<br>
-- <br>
-keith<br>
_______________________________________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org" target="_blank">Fontconfig@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/fontconfig</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>