mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
fontconfig: remove userfonts hack
This commit is contained in:
parent
2145dafca0
commit
fd3a6c6674
@ -24,15 +24,7 @@
|
|||||||
|
|
||||||
FC_CACHE_DIRS="/usr/share/fonts/ /usr/share/xbmc/media/Fonts/"
|
FC_CACHE_DIRS="/usr/share/fonts/ /usr/share/xbmc/media/Fonts/"
|
||||||
|
|
||||||
# hack to support user installed fonts
|
# TODO: add /storage/.xbmc/media/Fonts to $FC_CACHE_DIRS ?
|
||||||
SUBFONTS="/storage/.xbmc/userdata/fonts"
|
|
||||||
if [ -d "$SUBFONTS" ]; then
|
|
||||||
files=$(ls $SUBFONTS/*.[tT][tT][fF] 2>/dev/null | wc -l)
|
|
||||||
if [ "$files" = "0" ]; then
|
|
||||||
cp /usr/share/xbmc/media/Fonts/*.[tT][tT][fF] $SUBFONTS/
|
|
||||||
fi
|
|
||||||
mount --bind $SUBFONTS /usr/share/xbmc/media/Fonts/
|
|
||||||
fi
|
|
||||||
|
|
||||||
(
|
(
|
||||||
progress "Creating fontconfig cache"
|
progress "Creating fontconfig cache"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user