fontconfig: remove userfonts hack

This commit is contained in:
Stefan Saraev 2013-08-31 22:30:04 +03:00
parent 2145dafca0
commit fd3a6c6674

View File

@ -24,15 +24,7 @@
FC_CACHE_DIRS="/usr/share/fonts/ /usr/share/xbmc/media/Fonts/"
# hack to support user installed fonts
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
# TODO: add /storage/.xbmc/media/Fonts to $FC_CACHE_DIRS ?
(
progress "Creating fontconfig cache"