summaryrefslogtreecommitdiffstats
path: root/system/dina-font/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/dina-font/doinst.sh')
-rw-r--r--system/dina-font/doinst.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/dina-font/doinst.sh b/system/dina-font/doinst.sh
index 96b0162ebe..8bf0ea71d1 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