[Blends-commit] [SCM] ezgo branch, master, updated. 6035184f37204a0c0a50998b7a00764dfb85dbe5

Franklin franklin at goodhorse.idv.tw
Mon Nov 3 14:41:16 UTC 2014


The following commit has been merged in the master branch:
commit ae5e2d4bd223b4577f5df75af8be8b013d186cae
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Mon Nov 3 22:31:33 2014 +0800

    If Source Han Sans fonts installed, change the default fonts to it when
    installing ezgo-kde.

diff --git a/ezgo-kde/kde/update-kde b/ezgo-kde/kde/update-kde
index e9b3eda..d4f81c1 100755
--- a/ezgo-kde/kde/update-kde
+++ b/ezgo-kde/kde/update-kde
@@ -34,10 +34,23 @@ restore_ksplash() {
 	/usr/share/kde4/apps/kdm/themes/ezgo/background.png
 }
 
+change_ezgo_font_config() {
+    if [ -f /usr/local/share/fonts/s/SourceHanSans-Normal.otf ]; then
+	    sed -i 's/^\(font=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+	    sed -i 's/^\(menuFont=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+	    sed -i 's/^\(desktopFont=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+	    sed -i 's/^\(toolBarFont=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+	    sed -i 's/^\(smallestReadableFont=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+	    sed -i 's/^\(taskbarFont=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+	    sed -i 's/^\(activeFont=\)[^,]\+/\1Source Han Sans/g' /usr/share/ezgo/ezgo-kde/kde-profile/share/config/kdeglobals /etc/skel/.kde/share/config/kdeglobals
+    fi
+}
+
 case "$1" in
   configure)
     change_lightdm_kde_theme
     change_ksplash
+    change_ezgo_font_config
     ;;
   remove)
     restore_lightdm_kde_theme

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list