From b32c3bef1ffc9ef07d54c7f8c8bd51c0bfd41662 Mon Sep 17 00:00:00 2001 From: HW Date: Mon, 9 Apr 2012 19:13:35 +0200 Subject: [PATCH] added bind-mounting of host fonts --- Makefile | 1 + launchpad/kpdf.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2eba93c0e..edfc21dc9 100644 --- a/Makefile +++ b/Makefile @@ -198,6 +198,7 @@ customupdate: all mkdir $(INSTALL_DIR)/data cp -rpL data/*.css $(INSTALL_DIR)/data cp -rp fonts $(INSTALL_DIR) + mkdir -p $(INSTALL_DIR)/fonts/host zip -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/ rm -Rf $(INSTALL_DIR) @echo "copy kindlepdfviewer-$(VERSION).zip to /mnt/us/customupdates and install with shift+shift+I" diff --git a/launchpad/kpdf.sh b/launchpad/kpdf.sh index c1f42952e..a2b714b75 100755 --- a/launchpad/kpdf.sh +++ b/launchpad/kpdf.sh @@ -5,7 +5,12 @@ echo unlock > /proc/keypad echo unlock > /proc/fiveway cd /mnt/us/kindlepdfviewer/ + +grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts || mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host + ./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log +grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts && umount /mnt/us/kindlepdfviewer/fonts/host + killall -cont cvm echo 1 > /proc/eink_fb/update_display