From c18329b57362ecd52b5fc21491c1f61b951a9381 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 7 Mar 2023 23:50:53 -0500 Subject: system/dina-font: Add douninst.sh. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- system/dina-font/doinst.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'system/dina-font/doinst.sh') diff --git a/system/dina-font/doinst.sh b/system/dina-font/doinst.sh index 96b0162ebe17f..8bf0ea71d1a60 100644 --- a/system/dina-font/doinst.sh +++ b/system/dina-font/doinst.sh @@ -1,6 +1,6 @@ if [ -x /usr/bin/mkfontdir ]; then ( cd usr/share/fonts/misc - if ! grep -q ^Dina_ fonts.alias 2>/dev/null; then + if ! grep -q '^Dina_\([689]\|10\) ' fonts.alias 2>/dev/null; then echo 'Dina_6 -windows-dina-medium-r-normal--8-60-96-96-c-60-microsoft-cp1252' >> fonts.alias echo 'Dina_8 -windows-dina-medium-r-normal--10-80-96-96-c-70-microsoft-cp1252' >> fonts.alias echo 'Dina_9 -windows-dina-medium-r-normal--12-90-96-96-c-70-microsoft-cp1252' >> fonts.alias @@ -10,6 +10,9 @@ if [ -x /usr/bin/mkfontdir ]; then mkfontdir . ) fi + +[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null + if [ -x usr/bin/fc-cache ]; then usr/bin/fc-cache -f fi -- cgit v1.2.3