From 16dcfc31fdb84141b75ac769130748863a0afc20 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 2 Oct 2011 14:51:12 +0200 Subject: [PATCH] [scripts] remaster_generic_inner_chroot_script_after: enable fontconfig configuration files, make fonts look better --- ...aster_generic_inner_chroot_script_after.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/remaster_generic_inner_chroot_script_after.sh b/scripts/remaster_generic_inner_chroot_script_after.sh index 00e6c86..a660826 100755 --- a/scripts/remaster_generic_inner_chroot_script_after.sh +++ b/scripts/remaster_generic_inner_chroot_script_after.sh @@ -262,6 +262,25 @@ elif [ "$1" = "awesome" ]; then has_proprietary_drivers && setup_proprietary_gfx_drivers || setup_oss_gfx_drivers fi +FONTCONFIG_ENABLE=" + 10-autohint.conf + 10-no-sub-pixel.conf + 10-sub-pixel-bgr.conf + 10-sub-pixel-rgb.conf + 10-sub-pixel-vbgr.conf + 10-sub-pixel-vrgb.conf + 10-unhinted.conf + 31-cantarell.conf" + +for fc_en in ${FONTCONFIG_ENABLE}; do + if [ -f "/etc/fonts/conf.avail/${fc_en}" ]; then + # beautify font rendering + eselect fontconfig enable "${fc_en}" + else + echo "ouch, /etc/fonts/conf.avail/${fc_en} is not available" >&2 + fi +done + # Setup SAMBA config file if [ -f /etc/samba/smb.conf.default ]; then cp -p /etc/samba/smb.conf.default /etc/samba/smb.conf