summaryrefslogtreecommitdiffstats
path: root/liveinit.tpl
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-07-31 09:59:44 +0200
committer Eric Hameleers <alien@slackware.com>2017-07-31 09:59:44 +0200
commit83f92293c826a2a5ba222ee1133401b56ac9fd3e (patch)
treebbb512e7d281407c63d64265f8b7b8e9e962003e /liveinit.tpl
parentaa03c44155c69ae80fbb2cd23d32717e7e07e5e3 (diff)
downloadliveslak-83f92293c826a2a5ba222ee1133401b56ac9fd3e.tar.gz
liveslak-83f92293c826a2a5ba222ee1133401b56ac9fd3e.tar.xz
liveinit: reset freetype hinting params to defaults on every boot
Diffstat (limited to 'liveinit.tpl')
-rwxr-xr-xliveinit.tpl14
1 files changed, 9 insertions, 5 deletions
diff --git a/liveinit.tpl b/liveinit.tpl
index 66af4d6..7ffc871 100755
--- a/liveinit.tpl
+++ b/liveinit.tpl
@@ -1088,14 +1088,20 @@ EOT
if [ ! -f /mnt/overlay/etc/profile.d/freetype.sh ]; then
# Old freetype - disable sub-pixel hinting:
SPH=0
+ else
+ # First, remove anything about sub-pixel hinting that could be enabled,
+ # then decide what to do:
+ sed -e 's/^ *[^# ]/#&/' -i /mnt/overlay/etc/profile.d/freetype.sh
+ sed -e 's/^ *[^# ]/#&/' -i /mnt/overlay/etc/profile.d/freetype.csh
+ rm -f /mnt/overlay/etc/fonts/conf.d/10-hinting-slight.conf
+ rm -f /mnt/overlay/etc/fonts/conf.d/11-lcdfilter-default.conf
+ rm -f /mnt/overlay/home/${LIVEUID}/.Xresources
fi
if [ $SPH -eq 1 ]; then
- # Enable the new v40 interpreter in freetype:
- sed -e 's/^ *[^# ]/#&/' -i /mnt/overlay/etc/profile.d/freetype.sh
+ # Enable the new v40 interpreter in freetype (bash and c-shell):
cat <<EOT >> /mnt/overlay/etc/profile.d/freetype.sh
export FREETYPE_PROPERTIES="truetype:interpreter-version=40"
EOT
- sed -e 's/^ *[^# ]/#&/' -i /mnt/overlay/etc/profile.d/freetype.csh
cat <<EOT >> /mnt/overlay/etc/profile.d/freetype.csh
setenv FREETYPE_PROPERTIES "truetype:interpreter-version=40"
EOT
@@ -1113,11 +1119,9 @@ Xft.autohint: 0
EOT
elif [ -f /mnt/overlay/etc/profile.d/freetype.sh ]; then
# Explicitly configure the non-default old v35 interpreter in freetype:
- sed -e 's/^ *[^# ]/#&/' -i /mnt/overlay/etc/profile.d/freetype.sh
cat <<EOT >> /mnt/overlay/etc/profile.d/freetype.sh
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
EOT
- sed -e 's/^ *[^# ]/#&/' -i /mnt/overlay/etc/profile.d/freetype.csh
cat <<EOT >> /mnt/overlay/etc/profile.d/freetype.csh
setenv FREETYPE_PROPERTIES "truetype:interpreter-version=35"
EOT