fontconfig: remove kodi's font folder from fontconfig dirs

This is no longer needed as kodi Matrix/Nexus already make
.kodi/media/Fonts available to libass.

Large collections of fonts should better be stored in the default
XDG_DATA_HOME fonts location of fontconfig (/storage/.local/share/fonts)
though to avoid slow movie startup and kodi potentially running out
of memory as kodi/libass will load all fonts from .kodi/media/Fonts
into RAM. Making the fonts available to libass via fontconfig avoids
this issue.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-10-01 15:58:02 +02:00
parent 5def4c63d4
commit d87539789f
2 changed files with 0 additions and 8 deletions

View File

@ -1,5 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/storage/.kodi/media/Fonts</dir>
</fontconfig>

View File

@ -28,7 +28,4 @@ pre_configure_target() {
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
mkdir -p ${INSTALL}/etc/fonts/conf.d
cp ${PKG_DIR}/conf.d/*.conf ${INSTALL}/etc/fonts/conf.d
}