Make Amazon's additional CJK fonts available to us

Should be a no-op on systems which don't have any.
Fix #1802
pull/1842/head
NiLuJe 8 years ago
parent 3a84c7f980
commit 6413390490

@ -147,6 +147,15 @@ if [ -d /mnt/us/fonts ] ; then
fi
fi
# bind-mount csp fonts
if [ -d /var/local/font/mnt ] ; then
mkdir -p ${KOREADER_DIR}/fonts/cspfonts
if ! grep ${KOREADER_DIR}/fonts/cspfonts /proc/mounts > /dev/null 2>&1 ; then
logmsg "Mounting cspfonts . . ."
mount -o bind /var/local/font/mnt ${KOREADER_DIR}/fonts/cspfonts
fi
fi
# bind-mount linkfonts
if [ -d /mnt/us/linkfonts/fonts ] ; then
mkdir -p ${KOREADER_DIR}/fonts/linkfonts
@ -235,6 +244,12 @@ if grep ${KOREADER_DIR}/fonts/altfonts /proc/mounts > /dev/null 2>&1 ; then
umount ${KOREADER_DIR}/fonts/altfonts
fi
# unmount cspfonts
if grep ${KOREADER_DIR}/fonts/cspfonts /proc/mounts > /dev/null 2>&1 ; then
logmsg "Unmounting cspfonts . . ."
umount ${KOREADER_DIR}/fonts/cspfonts
fi
# unmount linkfonts
if grep ${KOREADER_DIR}/fonts/linkfonts /proc/mounts > /dev/null 2>&1 ; then
logmsg "Unmounting linkfonts . . ."

Loading…
Cancel
Save