Re: [PATCH] Make the cache filenames determinstic
"Keith Packard" <[email protected]> Tue, 30 Oct 2018 14:44:42 -0700
| Newsgroups | gmane.comp.fonts.fontconfig |
|---|---|
| Message-ID | <[email protected]> |
Akira TAGOH <[email protected]> writes: > just reminds me that there should be some options to do this but > wasn't too much if we keep compatibility in API and conditions not to > modify application-side. given that we revert this change and are > going to keep API compatibility and no changes in applications, what > we can do is probably to let fontconfig know the directory mapping > tables through a file and read it. though they need to re-generate it > every time if the mappings is changed every time. Ok, so what I've written today is an extension to the config file 'dir' element which provides a mapping value back to the underlying system font directory. flatpaks can then use this mechanism to locate the correct cache files by adding a 'map' attribute like this: <dir map="/usr/share/fonts">/run/host/fonts</dir> If the fontconfig version supplied in the flatpak supports this mechanism, it will re-use the host font cache. Otherwise, it will rebuild the font cache. Older fontconfig versions ignore the new attribute, so flatpak configuration can always include it. -- -keith _______________________________________________ Fontconfig mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlvY0MoACgkQ2yIaaQAA ABGjVxAAoNNdNiJM/VHgv/HThnePrcfkkRdDH4sF+NVgAGS5mKupN+6VMtUrcCCB vHX++j3HmbxNu5SEXqebOi0xixgKT7Kgj1OKAbDb5jtiMZgcq/JIRk2v/rnRtOQs 4w4zFfxI0oq4GSyHb6TQrqu6Vh643bO9uLjGbEX4zyY188nbpkUXpHFnu48fdZ+Z Cat0afrFGGPJVk2beKM0e6Lu7Rvc15+MTtVQF4czycQ0dPdMIuCC6SalMFfbBCxB mjSyfKGiFvw0LhcQSz3tqBbBKY1rvcwGtTlsG1rJAayuHr2ChPqBU80ZW14FMYlb 5p+NC5qBlCsqb67VWZAJzxvmZfX4Ja+UCqREP0YMTqpVNMeShmnxE4gGOzFRM16m 851vX8sWUUpLbaDDAE8AqXq/BAvsrmKZXO4VKIORtnNfX5VWPpefmJQ6lxNrIUJq xmqlo5plaOzj7ZrR/JcMxMiQgQQRqZLlwmqOqgT0blL7b42Hm3a/fwSDHUjjZQCD ULXfqDRe9JSZKAk+n13H328/NnkG/RZytwTrGD4xKnAaMM6wnaqbyQCjG32/dmVQ 2esQL2sT/54q56uQrjCgvMD5/g5yvvPMkcb0Fhr1moPq5m0t23otRwOtORr4hjNx BK3AeiOnL0fEvrtFLclYky6xsf6cQ25KMMscE7oNcgi8GpiTmN8= =pJt8 -----END PGP SIGNATURE-----